diff options
Diffstat (limited to 'src/mds-server/mds-server.c')
-rw-r--r-- | src/mds-server/mds-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-server/mds-server.c b/src/mds-server/mds-server.c index fabdffa..29caee3 100644 --- a/src/mds-server/mds-server.c +++ b/src/mds-server/mds-server.c @@ -429,13 +429,13 @@ void queue_message_multicast(char* message, size_t length, client_t* sender) char* colon = strchr(msg, ':'); *end = '\0'; - if ((header_values[i] = strdup(msg)) == NULL) + if (xstrdup(header_values[i], msg)) { header_count = i; fail_if (1); } *colon = '\0'; - if ((headers[i] = strdup(msg)) == NULL) + if (xstrdup(headers[i], msg)) { saved_errno = errno, free(headers[i]), errno = saved_errno; header_count = i; |