Match upstream.

Change-Id: I3d8b3cb9913ea7d09a5981f6d11b0af67ef0c9c7
This commit is contained in:
Tim Newsome 2018-03-06 13:07:34 -08:00
parent 5767fa8e04
commit 3d571df785
1 changed files with 1 additions and 2 deletions

View File

@ -273,8 +273,7 @@ int add_service(char *name,
c->sin.sin_port = htons(c->portnumber); c->sin.sin_port = htons(c->portnumber);
if (bind(c->fd, (struct sockaddr *)&c->sin, sizeof(c->sin)) == -1) { if (bind(c->fd, (struct sockaddr *)&c->sin, sizeof(c->sin)) == -1) {
LOG_ERROR("couldn't bind %s to socket on port %d: %s", name, LOG_ERROR("couldn't bind %s to socket on port %d: %s", name, c->portnumber, strerror(errno));
c->portnumber, strerror(errno));
close_socket(c->fd); close_socket(c->fd);
free_service(c); free_service(c);
return ERROR_FAIL; return ERROR_FAIL;