ITS#9541 fix typo in daemon.c

From commit ee49c83976
This commit is contained in:
Howard Chu 2021-04-30 09:24:32 +01:00
parent 145325dcc1
commit 7b2c9aed3c

View File

@ -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,