summaryrefslogtreecommitdiff
path: root/print-rx.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-03-11 16:01:19 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-03-11 16:01:19 +0100
commit2b56cf092388290689ec6b4dd7f1790b01eea289 (patch)
treeb5be24ce28db86c3647a20b644766a72a07496f0 /print-rx.c
parent5eb4ffa131391ffa8c84591a0a4b4a4d20acd537 (diff)
downloadtcpdump-2b56cf092388290689ec6b4dd7f1790b01eea289.tar.gz
Rx: Use ndo_error() when malloc() fails as in most similar cases
Diffstat (limited to 'print-rx.c')
-rw-r--r--print-rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-rx.c b/print-rx.c
index c0ec209f..f91e936c 100644
--- a/print-rx.c
+++ b/print-rx.c
@@ -1159,7 +1159,7 @@ acl_print(netdissect_options *ndo,
char fmt[1024];
if ((user = (char *)malloc(maxsize)) == NULL)
- return;
+ (*ndo->ndo_error)(ndo, S_ERR_ND_MEM_ALLOC, "acl_print: malloc");
if (sscanf((char *) s, "%d %d\n%n", &pos, &neg, &n) != 2)
goto finish;