Commit 4985abda authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#9541 fix typo in daemon.c

From commit ee49c839
parent d8b0f963
......@@ -1484,7 +1484,7 @@ slap_get_listener_addresses(
sap = *sal = ch_malloc((n+1) * sizeof(void *));
for ( i = 0; i<n; i++ ) {
sap[i] = ch_calloc(sizeof(struct sockaddr_in));
sap[i] = ch_calloc(1, sizeof(struct sockaddr_in));
sap[i]->sa_family = AF_INET;
((struct sockaddr_in *)sap[i])->sin_port = htons(port);
AC_MEMCPY( &((struct sockaddr_in *)sap[i])->sin_addr,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment