mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-20 10:21:19 +00:00
Closes: https://bugs.gentoo.org/962770 Closes: https://bugs.gentoo.org/963491 Signed-off-by: Jaco Kroon <jkroon@gentoo.org>
20 lines
509 B
Diff
20 lines
509 B
Diff
Patch supplied by Nick Bowler on https://bugs.gentoo.org/962770
|
|
|
|
This avoids a NULL dereference in case ntp fails to bind() to a decided upon
|
|
address that should be bound.
|
|
--- ntp-4.2.8p18/ntpd/ntp_io.c.orig
|
|
+++ ntp-4.2.8p18/ntpd/ntp_io.c
|
|
@@ -1921,11 +1921,11 @@
|
|
}
|
|
else {
|
|
DPRINT_INTERFACE(3,
|
|
- (ep, "updating ", " new - FAILED"));
|
|
+ (ep2, "updating ", " new - FAILED"));
|
|
|
|
msyslog(LOG_ERR,
|
|
"cannot bind address %s",
|
|
- stoa(&ep->sin));
|
|
+ stoa(&ep2->sin));
|
|
}
|
|
free(ep2);
|
|
}
|