summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-linux.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-09-14 15:43:03 +0100
committerColin Watson <cjwatson@debian.org>2013-09-14 15:43:03 +0100
commit8faf8c84430cf3c19705b1d9f8889d256e7fd1fd (patch)
treee6cb74192adb00fda5e4d1457547851d7e0d86af /openbsd-compat/port-linux.c
parent328b60656f29db6306994d7498dede386ec2d1c3 (diff)
parentc41345ad7ee5a22689e2c009595e85fa27b4b39a (diff)
merge 6.3p1
Diffstat (limited to 'openbsd-compat/port-linux.c')
-rw-r--r--openbsd-compat/port-linux.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c
index aba75387c..4637a7a3e 100644
--- a/openbsd-compat/port-linux.c
+++ b/openbsd-compat/port-linux.c
@@ -1,4 +1,4 @@
1/* $Id: port-linux.c,v 1.17 2012/03/08 23:25:18 djm Exp $ */ 1/* $Id: port-linux.c,v 1.18 2013/06/01 22:07:32 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com> 4 * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com>
@@ -96,10 +96,8 @@ ssh_selinux_getctxbyname(char *pwname)
96 } 96 }
97 97
98#ifdef HAVE_GETSEUSERBYNAME 98#ifdef HAVE_GETSEUSERBYNAME
99 if (sename != NULL) 99 free(sename);
100 xfree(sename); 100 free(lvl);
101 if (lvl != NULL)
102 xfree(lvl);
103#endif 101#endif
104 102
105 return sc; 103 return sc;
@@ -217,8 +215,8 @@ ssh_selinux_change_context(const char *newname)
217 if (setcon(newctx) < 0) 215 if (setcon(newctx) < 0)
218 switchlog("%s: setcon %s from %s failed with %s", __func__, 216 switchlog("%s: setcon %s from %s failed with %s", __func__,
219 newctx, oldctx, strerror(errno)); 217 newctx, oldctx, strerror(errno));
220 xfree(oldctx); 218 free(oldctx);
221 xfree(newctx); 219 free(newctx);
222} 220}
223 221
224void 222void