summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libnet_build_ethernet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libnet_build_ethernet.c b/src/libnet_build_ethernet.c
index 005c602..fc2ceb3 100644
--- a/src/libnet_build_ethernet.c
+++ b/src/libnet_build_ethernet.c
@@ -52,8 +52,7 @@ const uint8_t *payload, uint32_t payload_s, libnet_t *l, libnet_ptag_t ptag)
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,
"%s(): called with non-link layer wire injection primitive",
__func__);
- p = NULL;
- goto bad;
+ return (-1);
}
n = LIBNET_ETH_H + payload_s;