View | Details | Raw Unified | Return to bug 1496 | Differences between
and this patch

Collapse All | Expand All

(-)openssh-5.1p1/sshconnect2.c.bannerlen (-1 / +2 lines)
Lines 387-394 input_userauth_banner(int type, u_int32_ Link Here
387
	if (options.log_level >= SYSLOG_LEVEL_INFO) {
387
	if (options.log_level >= SYSLOG_LEVEL_INFO) {
388
		if (len > 65536)
388
		if (len > 65536)
389
			len = 65536;
389
			len = 65536;
390
		msg = xmalloc(len * 4); /* max expansion from strnvis() */
390
		msg = xmalloc(len * 4 + 1); /* max expansion from strnvis() */
391
		strnvis(msg, raw, len * 4, VIS_SAFE|VIS_OCTAL);
391
		strnvis(msg, raw, len * 4, VIS_SAFE|VIS_OCTAL);
392
		msg[len*4] = '\0';
392
		fprintf(stderr, "%s", msg);
393
		fprintf(stderr, "%s", msg);
393
		xfree(msg);
394
		xfree(msg);
394
	}
395
	}

Return to bug 1496