]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: fix uninitialized variable
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 18 Nov 2020 16:07:49 +0000 (19:07 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 18 Nov 2020 16:07:49 +0000 (19:07 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
isisd/isis_bpf.c

index 9599077771749b5a66a33d4403d3399e4552a8be..454da99e094fd69fffa6ae3680046fba9e09b06e 100644 (file)
@@ -215,7 +215,7 @@ int isis_sock_init(struct isis_circuit *circuit)
 
 int isis_recv_pdu_bcast(struct isis_circuit *circuit, uint8_t *ssnpa)
 {
-       int bytesread = 0, bytestoread, offset, one = 1;
+       int bytesread = 0, bytestoread = 0, offset, one = 1;
        uint8_t *buff_ptr;
        struct bpf_hdr *bpf_hdr;