diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2009-02-27 14:00:41 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2009-02-27 14:00:41 -0800 |
commit | f79b410ea0e245e311419b8115bb5cd01ede91bb (patch) | |
tree | 7fa5fb65ba6bffc921607cda04170af7b9d6f2c8 | |
parent | 19a25054c83954de7971a568c0f60c156f719101 (diff) | |
parent | 6ecff75150002bf30d61abc7a2244067a63507db (diff) | |
download | libnet-f79b410ea0e245e311419b8115bb5cd01ede91bb.tar.gz |
Merge branch 'debian-patch-06' into v1.1.2.1-fork
-rw-r--r-- | libnet/src/libnet_pblock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libnet/src/libnet_pblock.c b/libnet/src/libnet_pblock.c index ae12db9..5e35aa5 100644 --- a/libnet/src/libnet_pblock.c +++ b/libnet/src/libnet_pblock.c @@ -395,7 +395,7 @@ libnet_pblock_coalesce(libnet_t *l, u_int8_t **packet, u_int32_t *size) if (c == -1) { /* err msg set in libnet_do_checksum() */ - return (-1); + goto err; } } q = p; @@ -421,7 +421,7 @@ libnet_pblock_coalesce(libnet_t *l, u_int8_t **packet, u_int32_t *size) return (1); err: - free(packet); + free(*packet); return (-1); } |