]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
Add a status exit code to the function ndo_error()
[tcpdump] / print-tcp.c
index 66e87492a1b178325f0c82a9ee899371b1a1a43c..ab3dbbf3e6533d2a4ef367d82baac874b8e89f9c 100644 (file)
@@ -295,7 +295,8 @@ tcp_print(netdissect_options *ndo,
                                                 calloc(1, sizeof(*th));
                                         if (th->nxt == NULL)
                                                 (*ndo->ndo_error)(ndo,
-                                                                 "tcp_print: calloc");
+                                                       S_ERR_ND_MEM_ALLOC,
+                                                       "tcp_print: calloc");
                                 }
                                 th->addr = tha;
                                 if (rev)
@@ -352,7 +353,8 @@ tcp_print(netdissect_options *ndo,
                                                 calloc(1, sizeof(*th));
                                         if (th->nxt == NULL)
                                                 (*ndo->ndo_error)(ndo,
-                                                                 "tcp_print: calloc");
+                                                       S_ERR_ND_MEM_ALLOC,
+                                                       "tcp_print: calloc");
                                 }
                                 th->addr = tha;
                                 if (rev)