summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/addrmatch.c
diff options
context:
space:
mode:
authorstevesk <stevesk@openbsd.org>2008-12-10 03:55:20 +0000
committerstevesk <stevesk@openbsd.org>2008-12-10 03:55:20 +0000
commit3c6430525e86ce45715387a99616a48add592237 (patch)
tree3fc526ae7a58f39fba029acb0c76310de556dc36 /usr.bin/ssh/addrmatch.c
parentsizeofa -> nitems (diff)
downloadwireguard-openbsd-3c6430525e86ce45715387a99616a48add592237.tar.xz
wireguard-openbsd-3c6430525e86ce45715387a99616a48add592237.zip
o cannot be NULL here but use xfree() to be consistent; ok djm@
Diffstat (limited to 'usr.bin/ssh/addrmatch.c')
-rw-r--r--usr.bin/ssh/addrmatch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/addrmatch.c b/usr.bin/ssh/addrmatch.c
index 9917d562bf6..0066120e065 100644
--- a/usr.bin/ssh/addrmatch.c
+++ b/usr.bin/ssh/addrmatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: addrmatch.c,v 1.3 2008/06/10 23:06:19 djm Exp $ */
+/* $OpenBSD: addrmatch.c,v 1.4 2008/12/10 03:55:20 stevesk Exp $ */
/*
* Copyright (c) 2004-2008 Damien Miller <djm@mindrot.org>
@@ -29,6 +29,7 @@
#include "match.h"
#include "log.h"
+#include "xmalloc.h"
struct xaddr {
sa_family_t af;
@@ -413,7 +414,7 @@ addr_match_list(const char *addr, const char *_list)
goto foundit;
}
}
- free(o);
+ xfree(o);
return ret;
}