diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2016-09-17 09:21:17 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2016-09-17 09:21:17 +0000 |
commit | 1c6f0256acf2f9530533752951672ebebec3139e (patch) | |
tree | f9f44449edf5b368f75a5168b71bad8048ec640a /sbin/ping6/ping6.c | |
parent | 9266ad31f58ddfea50057d4e7a717829fade1ce1 (diff) |
Normalize receive packet allocation.
Diffstat (limited to 'sbin/ping6/ping6.c')
-rw-r--r-- | sbin/ping6/ping6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index 98049b572dc..adcc4e6c92e 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping6.c,v 1.201 2016/09/17 09:20:39 florian Exp $ */ +/* $OpenBSD: ping6.c,v 1.202 2016/09/17 09:21:16 florian Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -452,7 +452,7 @@ main(int argc, char *argv[]) packlen = datalen + IP6LEN + ECHOLEN + EXTRA; if (!(packet = malloc(packlen))) - err(1, "Unable to allocate packet"); + err(1, "malloc"); if (!(options & F_PINGFILLED)) for (i = ECHOTMLEN; i < datalen; ++i) |