]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-decnet.c
Add a status exit code to the function ndo_error()
[tcpdump] / print-decnet.c
index ef610767e961784af672414076b17cdf8aba6115..253d133d9cd076ace4e071ccf74858c96ee05f67 100644 (file)
@@ -1246,7 +1246,7 @@ dnnum_string(netdissect_options *ndo, u_short dnaddr)
        /* malloc() return used by the 'dnaddrtable' hash table: do not free() */
        str = (char *)malloc(siz = sizeof("00.0000"));
        if (str == NULL)
-               (*ndo->ndo_error)(ndo, "dnnum_string: malloc");
+               (*ndo->ndo_error)(ndo, S_ERR_ND_MEM_ALLOC, "dnnum_string: malloc");
        nd_snprintf(str, siz, "%u.%u", area, node);
        return(str);
 }