diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-03-11 16:01:19 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-03-11 16:01:19 +0100 |
commit | 2b56cf092388290689ec6b4dd7f1790b01eea289 (patch) | |
tree | b5be24ce28db86c3647a20b644766a72a07496f0 /print-rx.c | |
parent | 5eb4ffa131391ffa8c84591a0a4b4a4d20acd537 (diff) | |
download | tcpdump-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |