summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index 2b46837dc..4c6e964a1 100644
--- a/session.c
+++ b/session.c
@@ -529,7 +529,7 @@ do_exec_no_pty(struct ssh *ssh, Session *s, const char *command)
529 * it to the user, otherwise multiple sessions may accumulate 529 * it to the user, otherwise multiple sessions may accumulate
530 * multiple copies of the login messages. 530 * multiple copies of the login messages.
531 */ 531 */
532 buffer_clear(&loginmsg); 532 sshbuf_reset(loginmsg);
533 533
534#ifdef USE_PIPES 534#ifdef USE_PIPES
535 /* We are the parent. Close the child sides of the pipes. */ 535 /* We are the parent. Close the child sides of the pipes. */