From dd8e5419eb3a7bf22c9b2d47a78d6935b16d4ecc Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 2 Jan 2017 14:23:54 +0100 Subject: [PATCH] Fix use-after-free error (#1409433) --- openssh-6.6p1-role-mls.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssh-6.6p1-role-mls.patch b/openssh-6.6p1-role-mls.patch index 76e6721..454c827 100644 --- a/openssh-6.6p1-role-mls.patch +++ b/openssh-6.6p1-role-mls.patch @@ -288,7 +288,7 @@ diff -up openssh/monitor.c.role-mls openssh/monitor.c if (buffer_get_char(&b) != SSH2_MSG_USERAUTH_REQUEST) fail++; cp = buffer_get_cstring(&b, NULL); -+ if ((r = strchr(p, '/')) != NULL) ++ if ((r = strchr(cp, '/')) != NULL) + *r = '\0'; xasprintf(&userstyle, "%s%s%s", authctxt->user, authctxt->style ? ":" : "",