13 lines
551 B
Plaintext
13 lines
551 B
Plaintext
$OpenBSD: patch-third-party_libnatpmp_getgateway_c,v 1.2 2009/07/22 15:52:07 naddy Exp $
|
|
--- third-party/libnatpmp/getgateway.c.orig Sat Jul 18 03:21:07 2009
|
|
+++ third-party/libnatpmp/getgateway.c Sun Jul 19 14:13:32 2009
|
|
@@ -249,7 +249,7 @@ int getdefaultgateway(in_addr_t *addr)
|
|
|
|
do {
|
|
l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg));
|
|
- } while (l > 0 && (rtm.rtm_seq != seq || rtm.rtm_pid != pid));
|
|
+ } while (l > 0 && (rtm.rtm_version != RTM_VERSION || rtm.rtm_seq != seq || rtm.rtm_pid != pid));
|
|
|
|
close(s);
|
|
|