SwordArMor-gentoo-overlay/net-misc/openssh/files/openssh-9.8_p1-musl-connect.patch
Alarig Le Lay daf5deef90
net-misc/openssh: Adding 9.8 with DSA
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
2024-10-10 13:15:40 +02:00

15 lines
478 B
Diff

https://bugzilla.mindrot.org/show_bug.cgi?id=3707
https://bugs.gentoo.org/935353
--- a/openbsd-compat/port-linux.c
+++ b/openbsd-compat/port-linux.c
@@ -366,7 +366,7 @@ ssh_systemd_notify(const char *fmt, ...)
error_f("socket \"%s\": %s", path, strerror(errno));
goto out;
}
- if (connect(fd, &addr, sizeof(addr)) != 0) {
+ if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) != 0) {
error_f("socket \"%s\" connect: %s", path, strerror(errno));
goto out;
}