summaryrefslogtreecommitdiff
path: root/addrmatch.c
diff options
context:
space:
mode:
authordjm <djm>2009-01-28 05:16:00 +0000
committerdjm <djm>2009-01-28 05:16:00 +0000
commit5bc1df1e26fea098e9b112861aef165f87208ba5 (patch)
tree8490a8b0cd79f4ad768c6e993fd77ebb27053e03 /addrmatch.c
parent5ba75bcb71f7bad42173bdcbc3f6a9cb6063e84b (diff)
downloadopenssh-5bc1df1e26fea098e9b112861aef165f87208ba5.tar.gz
- stevesk@cvs.openbsd.org 2008/12/10 03:55:20
[addrmatch.c] o cannot be NULL here but use xfree() to be consistent; ok djm@
Diffstat (limited to 'addrmatch.c')
-rw-r--r--addrmatch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/addrmatch.c b/addrmatch.c
index f3c861a1..d39885b7 100644
--- a/addrmatch.c
+++ b/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>
@@ -31,6 +31,7 @@
#include "match.h"
#include "log.h"
+#include "xmalloc.h"
struct xaddr {
sa_family_t af;
@@ -417,7 +418,7 @@ addr_match_list(const char *addr, const char *_list)
goto foundit;
}
}
- free(o);
+ xfree(o);
return ret;
}