]> andersk Git - moira.git/commitdiff
dereference NULL bug
authormar <mar>
Tue, 22 Sep 1992 17:21:36 +0000 (17:21 +0000)
committermar <mar>
Tue, 22 Sep 1992 17:21:36 +0000 (17:21 +0000)
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.176541 seconds and 5 git commands to generate.