You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.5 KiB

Index: route.c
--- route.c.orig 2005-04-11 05:43:56 +0200
+++ route.c 2005-05-22 10:58:23 +0200
@@ -1380,6 +1380,7 @@
{
warn("writing to routing socket");
gc_free (&gc);
+ close(s);
return false;
}
@@ -1387,6 +1388,7 @@
l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg));
} while (l > 0 && (rtm.rtm_seq != seq || rtm.rtm_pid != pid));
+ close(s);
rtm_aux = &rtm;
@@ -1535,6 +1537,7 @@
{
msg (M_WARN, "ROUTE: problem writing to routing socket");
gc_free (&gc);
+ close(s);
return false;
}
@@ -1542,6 +1545,7 @@
l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg));
} while (l > 0 && (rtm.rtm_seq != seq || rtm.rtm_pid != pid));
+ close(s);
rtm_aux = &rtm;
@@ -1690,6 +1694,7 @@
{
warn("writing to routing socket");
gc_free (&gc);
+ close(s);
return false;
}
@@ -1697,6 +1702,7 @@
l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg));
} while (l > 0 && (rtm.rtm_seq != seq || rtm.rtm_pid != pid));
+ close(s);
rtm_aux = &rtm;
Index: sample-scripts/verify-cn
--- sample-scripts/verify-cn.orig 2005-02-07 03:08:16 +0100
+++ sample-scripts/verify-cn 2005-05-22 10:58:23 +0200
@@ -36,7 +36,8 @@
if ($x509 =~ /\/CN=([^\/]+)/) {
# Accept the connection if the X509 common name
# string matches the passed cn argument.
- if ($cn eq $1) {
+ my $x509_cn = $1;
+ if ($x509_cn =~ m/^${cn}$/s) {
exit 0;
}
}