mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix rshd coredump when AF_INET socket is used.
Confirmed by: F. Heinrichmeyer <fritz.heinrichmeyer@fernuni-hagen.de>
This commit is contained in:
parent
208b582201
commit
1f2ba8fcb7
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ doit(fromp)
|
|||
exit(1);
|
||||
}
|
||||
fromp->su_port = htons(port);
|
||||
if (connect(s, (struct sockaddr *)fromp, sizeof (*fromp)) < 0) {
|
||||
if (connect(s, (struct sockaddr *)fromp, fromp->su_len) < 0) {
|
||||
syslog(LOG_INFO, "connect second port %d: %m", port);
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue