diff options
Diffstat (limited to 'openbsd-compat/port-linux.c')
-rw-r--r-- | openbsd-compat/port-linux.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c index 2b8a14a59..de6ad3fd7 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> |
@@ -109,10 +109,8 @@ ssh_selinux_getctxbyname(char *pwname, const char *role) | |||
109 | } | 109 | } |
110 | 110 | ||
111 | #ifdef HAVE_GETSEUSERBYNAME | 111 | #ifdef HAVE_GETSEUSERBYNAME |
112 | if (sename != NULL) | 112 | free(sename); |
113 | xfree(sename); | 113 | free(lvl); |
114 | if (lvl != NULL) | ||
115 | xfree(lvl); | ||
116 | #endif | 114 | #endif |
117 | 115 | ||
118 | return sc; | 116 | return sc; |
@@ -230,8 +228,8 @@ ssh_selinux_change_context(const char *newname) | |||
230 | if (setcon(newctx) < 0) | 228 | if (setcon(newctx) < 0) |
231 | switchlog("%s: setcon %s from %s failed with %s", __func__, | 229 | switchlog("%s: setcon %s from %s failed with %s", __func__, |
232 | newctx, oldctx, strerror(errno)); | 230 | newctx, oldctx, strerror(errno)); |
233 | xfree(oldctx); | 231 | free(oldctx); |
234 | xfree(newctx); | 232 | free(newctx); |
235 | } | 233 | } |
236 | 234 | ||
237 | void | 235 | void |