diff options
author | Damien Miller <djm@mindrot.org> | 2008-11-03 19:16:57 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-11-03 19:16:57 +1100 |
commit | c674d580dc9626ed3bb8886f34bd9dffef851a0a (patch) | |
tree | 023d4daf1269057181dbc856ca445553ca81cb6c /sshconnect2.c | |
parent | c6aadd994d0ed79f5606b7061d576d514fd71cd7 (diff) | |
download | openssh-git-c674d580dc9626ed3bb8886f34bd9dffef851a0a.tar.gz |
- markus@cvs.openbsd.org 2008/07/31 14:48:28
[sshconnect2.c]
don't allocate space for empty banners; report t8m at centrum.cz;
ok deraadt
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index 389bec9e..1a8f3907 100644 --- a/sshconnect2.c +++ b/sshconnect2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect2.c,v 1.166 2008/07/17 08:48:00 djm Exp $ */ +/* $OpenBSD: sshconnect2.c,v 1.167 2008/07/31 14:48:28 markus Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -383,7 +383,7 @@ input_userauth_banner(int type, u_int32_t seq, void *ctxt) debug3("input_userauth_banner"); raw = packet_get_string(&len); lang = packet_get_string(NULL); - if (options.log_level >= SYSLOG_LEVEL_INFO) { + if (len > 0 && options.log_level >= SYSLOG_LEVEL_INFO) { if (len > 65536) len = 65536; msg = xmalloc(len * 4); /* max expansion from strnvis() */ |