diff options
author | Jiri Popelka <jpopelka@redhat.com> | 2011-06-09 14:57:06 +0200 |
---|---|---|
committer | Jiri Popelka <jpopelka@redhat.com> | 2011-06-09 14:57:06 +0200 |
commit | 8b9e21ed096d67e8ce974e126f9c886c14edaa72 (patch) | |
tree | 5a02aa729e0de4f8101fb118f53525fc745ff3a3 | |
parent | 59a48ff5ca7f74f29e1eba7838f59f96029e8865 (diff) | |
download | libnet-8b9e21ed096d67e8ce974e126f9c886c14edaa72.tar.gz |
Coverity: UNINIT
libnet_build_icmp.c:403: var_decl: Declaring variable "h" without initializer.
libnet_build_icmp.c:433: uninit_use_in_call: Using uninitialized value
"h" when calling "libnet_pblock_update".
libnet_pblock.c:295: read_parm: Reading a parameter value.
-rw-r--r-- | libnet/src/libnet_build_icmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libnet/src/libnet_build_icmp.c b/libnet/src/libnet_build_icmp.c index ee31d1a..b3cbd0c 100644 --- a/libnet/src/libnet_build_icmp.c +++ b/libnet/src/libnet_build_icmp.c @@ -410,6 +410,7 @@ uint8_t *payload, uint32_t payload_s, libnet_t *l, libnet_ptag_t ptag) } n = LIBNET_ICMPV6_UNREACH_H + payload_s; /* size of memory block */ + h = LIBNET_ICMPV6_UNREACH_H + payload_s + l->total_size; /* * Find the existing protocol block if a ptag is specified, or create |