Skip to content

Commit

Permalink
Disable obfuscation correctly when privilege separation is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Leidl committed Jun 30, 2009
1 parent 52b9e37 commit b7e20f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1879,9 +1879,13 @@ main(int ac, char **av)
/* prepare buffer to collect messages to display to user after login */
buffer_init(&loginmsg);

if (use_privsep)
if (privsep_preauth(authctxt) == 1)
if (use_privsep) {
if (privsep_preauth(authctxt) == 1) {
if(use_obfuscation)
packet_disable_obfuscation();
goto authenticated;
}
}

/* perform the key exchange */
/* authenticate user and start session */
Expand Down

0 comments on commit b7e20f6

Please sign in to comment.