Fix a simple bug that prevents svc_tli_create to bind to the address
specified by caller. NetBSD rev. 1.6 Reviewed by: rwatson Approved by: rwatson (re) Obtained from: NetBSD
This commit is contained in:
parent
97dd05ab1e
commit
9a1dc7e65a
@ -245,7 +245,7 @@ svc_tli_create(fd, nconf, bindaddr, sendsz, recvsz)
|
||||
_listen(fd, SOMAXCONN);
|
||||
} else {
|
||||
if (_bind(fd,
|
||||
(struct sockaddr *)(void *)&bindaddr->addr.buf,
|
||||
(struct sockaddr *)bindaddr->addr.buf,
|
||||
(socklen_t)si.si_alen) < 0) {
|
||||
warnx(
|
||||
"svc_tli_create: could not bind to requested address");
|
||||
|
Loading…
x
Reference in New Issue
Block a user