- fix remap rules convert error <pjones@redhat.com>

This commit is contained in:
Radek Vokál 2005-04-19 11:42:25 +00:00
parent 925fed7193
commit 912ab054c5
2 changed files with 23 additions and 0 deletions

18
tftp-0.40-remap.patch Normal file
View File

@ -0,0 +1,18 @@
--- tftp-hpa-0.40/tftpd/remap.c.old 2005-03-16 16:34:34.000000000 -0500
+++ tftp-hpa-0.40/tftpd/remap.c 2005-03-16 16:22:49.000000000 -0500
@@ -275,6 +275,7 @@
int lineno = 0;
int err = 0;
+ memset(this_rule, '\0', sizeof(struct rule));
while ( lineno++, fgets(line, MAXLINE, f) ) {
rv = parseline(line, this_rule, lineno);
if ( rv < 0 )
@@ -283,6 +284,7 @@
*last_rule = this_rule;
last_rule = &this_rule->next;
this_rule = tfmalloc(sizeof(struct rule));
+ memset(this_rule, '\0', sizeof(struct rule));
}
}

View File

@ -7,6 +7,7 @@ Release: 5
License: BSD
Group: Applications/Internet
Source0: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{tftp_hpa_version}.tar.bz2
Patch0: tftp-0.40-remap.patch
BuildPreReq: tcp_wrappers
BuildRoot: %{_tmppath}/%{name}-root
@ -32,6 +33,7 @@ enabled unless it is expressly needed. The TFTP server is run from
%prep
%setup -q -n tftp-hpa-%{version}
%patch0 -p1 -b .zero
%build
@ -74,6 +76,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man8/*
%changelog
* Tue Apr 19 2005 Radek Vokal <rvokal@redhat.com> 0.40-6
- fix remap rules convert error <pjones@redhat.com>
* Wed Mar 23 2005 Radek Vokal <rvokal@redhat.com> 0.40-5
- use tftp-xinetd from tarball (#143589)