9b816c
diff --git a/src/libnet_pblock.c b/src/libnet_pblock.c
9b816c
index 9fd015f..fa46d35 100644
9b816c
--- a/src/libnet_pblock.c
9b816c
+++ b/src/libnet_pblock.c
9b816c
@@ -500,10 +500,9 @@ libnet_pblock_coalesce(libnet_t *l, uint8_t **packet, uint32_t *size)
9b816c
 				q->ptag, libnet_diag_dump_pblock_type(q->type),
9b816c
 				ip_offset);
9b816c
 #endif
9b816c
-                        c = libnet_inet_checksum(l, iph,
9b816c
-                                libnet_pblock_p2p(q->type), q->h_len,
9b816c
-                                beg, end);
9b816c
-                        if (c == -1)
9b816c
+                        if (libnet_inet_checksum(l, iph,
9b816c
+                                                 libnet_pblock_p2p(q->type), q->h_len,
9b816c
+                                                 beg, end) == -1)
9b816c
                         {
9b816c
                             /* err msg set in libnet_do_checksum() */
9b816c
                             goto err;