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:
mbr 2003-05-18 15:07:25 +00:00
parent 97dd05ab1e
commit 9a1dc7e65a

View File

@ -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");