mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
4e3148f429
commit
f8af072548
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue