]> andersk Git - moira.git/blobdiff - reg_svr/requests.c
dereference NULL bug
[moira.git] / reg_svr / requests.c
index c45642aea928fc4a624ab442c30cc745289074be..98ec328980aea86799b642423394cee3735945ad 100644 (file)
@@ -224,6 +224,7 @@ int format_pkt(packet, pktlenp, seqno, cl_status, message)
     /* Find out how much of the message to copy; truncate if too short. */
     /* How much room is there left? */
     len = *pktlenp - sizeof(U_32BIT)*3;
+    if (message == NULL) message = "";
     if (len < strlen(message) + 1) /* Room for null terminator */
     {
        status = FAILURE;       /* Message was truncated */
This page took 0.033078 seconds and 4 git commands to generate.