forked from rpms/openssh
- fixed zero length banner problem (#457326)
This commit is contained in:
parent
ec5276165c
commit
578f0d08a9
14
openssh-5.1p1-bannerlen.patch
Normal file
14
openssh-5.1p1-bannerlen.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff -up openssh-5.1p1/sshconnect2.c.bannerlen openssh-5.1p1/sshconnect2.c
|
||||||
|
--- openssh-5.1p1/sshconnect2.c.bannerlen 2008-07-23 19:18:15.000000000 +0200
|
||||||
|
+++ openssh-5.1p1/sshconnect2.c 2008-07-31 11:16:51.000000000 +0200
|
||||||
|
@@ -387,8 +387,9 @@ input_userauth_banner(int type, u_int32_
|
||||||
|
if (options.log_level >= SYSLOG_LEVEL_INFO) {
|
||||||
|
if (len > 65536)
|
||||||
|
len = 65536;
|
||||||
|
- msg = xmalloc(len * 4); /* max expansion from strnvis() */
|
||||||
|
+ msg = xmalloc(len * 4 + 1); /* max expansion from strnvis() */
|
||||||
|
strnvis(msg, raw, len * 4, VIS_SAFE|VIS_OCTAL);
|
||||||
|
+ msg[len*4] = '\0';
|
||||||
|
fprintf(stderr, "%s", msg);
|
||||||
|
xfree(msg);
|
||||||
|
}
|
@ -63,7 +63,7 @@
|
|||||||
Summary: The OpenSSH implementation of SSH protocol versions 1 and 2
|
Summary: The OpenSSH implementation of SSH protocol versions 1 and 2
|
||||||
Name: openssh
|
Name: openssh
|
||||||
Version: 5.1p1
|
Version: 5.1p1
|
||||||
Release: 1%{?dist}%{?rescue_rel}
|
Release: 2%{?dist}%{?rescue_rel}
|
||||||
URL: http://www.openssh.com/portable.html
|
URL: http://www.openssh.com/portable.html
|
||||||
#Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
#Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
||||||
#Source1: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz.asc
|
#Source1: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz.asc
|
||||||
@ -96,6 +96,7 @@ Patch51: openssh-5.1p1-nss-keys.patch
|
|||||||
Patch54: openssh-5.1p1-gssapi-role.patch
|
Patch54: openssh-5.1p1-gssapi-role.patch
|
||||||
Patch55: openssh-5.1p1-cloexec.patch
|
Patch55: openssh-5.1p1-cloexec.patch
|
||||||
Patch62: openssh-5.1p1-scp-manpage.patch
|
Patch62: openssh-5.1p1-scp-manpage.patch
|
||||||
|
Patch63: openssh-5.1p1-bannerlen.patch
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
@ -227,6 +228,7 @@ an X11 passphrase dialog for OpenSSH.
|
|||||||
%patch54 -p1 -b .gssapi-role
|
%patch54 -p1 -b .gssapi-role
|
||||||
%patch55 -p1 -b .cloexec
|
%patch55 -p1 -b .cloexec
|
||||||
%patch62 -p1 -b .manpage
|
%patch62 -p1 -b .manpage
|
||||||
|
%patch63 -p1 -b .bannerlen
|
||||||
|
|
||||||
autoreconf
|
autoreconf
|
||||||
|
|
||||||
@ -478,6 +480,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 31 2008 Tomas Mraz <tmraz@redhat.com> - 5.1p1-2
|
||||||
|
- fixed zero length banner problem (#457326)
|
||||||
|
|
||||||
* Wed Jul 23 2008 Tomas Mraz <tmraz@redhat.com> - 5.1p1-1
|
* Wed Jul 23 2008 Tomas Mraz <tmraz@redhat.com> - 5.1p1-1
|
||||||
- upgrade to new upstream release
|
- upgrade to new upstream release
|
||||||
- fixed a problem with public key authentication and explicitely
|
- fixed a problem with public key authentication and explicitely
|
||||||
|
Loading…
Reference in New Issue
Block a user