]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed dead store assignment.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 7 Oct 2020 13:51:05 +0000 (14:51 +0100)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 7 Oct 2020 13:51:05 +0000 (14:51 +0100)
Found by Clang Static Analyzer.

src/event/ngx_event_quic_transport.c

index 9a1704f106983fd18dc2c798bdf912e07649df05..1bd470f2610aae927f3931bfec6280a4e6a55902 100644 (file)
@@ -1482,7 +1482,7 @@ ngx_quic_parse_transport_param(u_char *p, u_char *end, uint16_t id,
     case NGX_QUIC_TP_INITIAL_SCID:
 
         str.len = end - p;
-        p = ngx_quic_read_bytes(p, end, str.len, &str.data);
+        str.data = p;
         break;
 
     default: