summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2012-12-18 15:36:44 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2012-12-18 15:36:44 +0000
commit9e7864aa814b985d2dd736f80d0117a1e5fff8ff (patch)
treebc078046d0c867fff2eb64f901c4f9ae5a0bb18a
parent01c447028caca34f5592361a61b67ada604503c6 (diff)
cnl is only allocated if F_NATLOOK was specified before, so skip the
extra check for F_NATLOOK and check if cnl is not NULL only. no functional change, but this might make it clear that there is no and was no memleak here.
-rw-r--r--usr.sbin/relayd/relay_udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay_udp.c b/usr.sbin/relayd/relay_udp.c
index 3f760139ac4..522b918e907 100644
--- a/usr.sbin/relayd/relay_udp.c
+++ b/usr.sbin/relayd/relay_udp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay_udp.c,v 1.25 2012/10/03 08:33:31 reyk Exp $ */
+/* $OpenBSD: relay_udp.c,v 1.26 2012/12/18 15:36:43 reyk Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -310,7 +310,7 @@ relay_udp_server(int fd, short sig, void *arg)
return;
}
- if (rlay->rl_conf.flags & F_NATLOOK && cnl != NULL) {
+ if (cnl != NULL) {
con->se_cnl = cnl;
bzero(cnl, sizeof(*cnl));
cnl->in = -1;