From dd8e5419eb3a7bf22c9b2d47a78d6935b16d4ecc Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Jan 03 2017 13:30:50 +0000 Subject: Fix use-after-free error (#1409433) --- 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 ? ":" : "",