diff options
author | djm@openbsd.org <djm@openbsd.org> | 2018-06-07 09:26:42 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-06-07 19:28:44 +1000 |
commit | 6d41815e202fbd6182c79780b6cc90e1ec1c9981 (patch) | |
tree | 2ab407c315782ca6892216789ad2dbc339a671e4 /auth-options.c | |
parent | 4319f7a868d86d435fa07112fcb6153895d03a7f (diff) |
upstream: some permitlisten fixes from markus@ that I missed in my
insomnia-fueled commits last night
OpenBSD-Commit-ID: 26f23622e928996086e85b1419cc1c0f136e359c
Diffstat (limited to 'auth-options.c')
-rw-r--r-- | auth-options.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-options.c b/auth-options.c index fe6432f57..151b16ece 100644 --- a/auth-options.c +++ b/auth-options.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth-options.c,v 1.81 2018/06/07 04:31:51 djm Exp $ */ | 1 | /* $OpenBSD: auth-options.c,v 1.82 2018/06/07 09:26:42 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Damien Miller <djm@mindrot.org> | 3 | * Copyright (c) 2018 Damien Miller <djm@mindrot.org> |
4 | * | 4 | * |
@@ -313,7 +313,7 @@ sshauthopt_new_with_keys_defaults(void) | |||
313 | * Return 0 on success. Return -1 on failure and sets *errstrp to error reason. | 313 | * Return 0 on success. Return -1 on failure and sets *errstrp to error reason. |
314 | */ | 314 | */ |
315 | static int | 315 | static int |
316 | handle_permit(const char **opts, char ***permitsp, size_t *npermitsp, | 316 | handle_permit(const char **optsp, char ***permitsp, size_t *npermitsp, |
317 | const char **errstrp) | 317 | const char **errstrp) |
318 | { | 318 | { |
319 | char *opt, *tmp, *cp, *host, **permits = *permitsp; | 319 | char *opt, *tmp, *cp, *host, **permits = *permitsp; |
@@ -324,7 +324,7 @@ handle_permit(const char **opts, char ***permitsp, size_t *npermitsp, | |||
324 | *errstrp = "too many permission directives"; | 324 | *errstrp = "too many permission directives"; |
325 | return -1; | 325 | return -1; |
326 | } | 326 | } |
327 | if ((opt = opt_dequote(opts, &errstr)) == NULL) { | 327 | if ((opt = opt_dequote(optsp, &errstr)) == NULL) { |
328 | return -1; | 328 | return -1; |
329 | } | 329 | } |
330 | if ((tmp = strdup(opt)) == NULL) { | 330 | if ((tmp = strdup(opt)) == NULL) { |
@@ -849,7 +849,7 @@ sshauthopt_serialise(const struct sshauthopt *opts, struct sshbuf *m, | |||
849 | if ((r = serialise_array(m, opts->env, | 849 | if ((r = serialise_array(m, opts->env, |
850 | untrusted ? 0 : opts->nenv)) != 0 || | 850 | untrusted ? 0 : opts->nenv)) != 0 || |
851 | (r = serialise_array(m, opts->permitopen, | 851 | (r = serialise_array(m, opts->permitopen, |
852 | untrusted ? 0 : opts->npermitopen)) || | 852 | untrusted ? 0 : opts->npermitopen)) != 0 || |
853 | (r = serialise_array(m, opts->permitlisten, | 853 | (r = serialise_array(m, opts->permitlisten, |
854 | untrusted ? 0 : opts->npermitlisten)) != 0) | 854 | untrusted ? 0 : opts->npermitlisten)) != 0) |
855 | return r; | 855 | return r; |