- fix add null check in parse_server_string() (bz979155).
This commit is contained in:
parent
47a86905ec
commit
4cb4c4f4c0
45
autofs-5.0.7-fix-add-null-check-in-parse_server_string.patch
Normal file
45
autofs-5.0.7-fix-add-null-check-in-parse_server_string.patch
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
autofs-5.0.7 - fix add null check in parse_server_string()
|
||||||
|
|
||||||
|
From: Ian Kent <raven@themaw.net>
|
||||||
|
|
||||||
|
In a recent patch that added an error check for the case there's no ':' server
|
||||||
|
name delimiter parse_server_string() braces were not added which lead to an
|
||||||
|
incorrect parse error.
|
||||||
|
---
|
||||||
|
CHANGELOG | 1 +
|
||||||
|
modules/lookup_ldap.c | 4 ++--
|
||||||
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/CHANGELOG b/CHANGELOG
|
||||||
|
index 503a21e..5d90139 100644
|
||||||
|
--- a/CHANGELOG
|
||||||
|
+++ b/CHANGELOG
|
||||||
|
@@ -52,6 +52,7 @@
|
||||||
|
- add changlog entry for coverity fixes.
|
||||||
|
- fix probe each nfs version in turn for singleton mounts.
|
||||||
|
- misc man page fixes.
|
||||||
|
+- fix add null check in parse_server_string().
|
||||||
|
|
||||||
|
25/07/2012 autofs-5.0.7
|
||||||
|
=======================
|
||||||
|
diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c
|
||||||
|
index 35ea6ea..a2bfafd 100644
|
||||||
|
--- a/modules/lookup_ldap.c
|
||||||
|
+++ b/modules/lookup_ldap.c
|
||||||
|
@@ -1210,14 +1210,14 @@ static int parse_server_string(unsigned logopt, const char *url, struct lookup_c
|
||||||
|
const char *q = NULL;
|
||||||
|
|
||||||
|
/* Isolate the server. Include the port spec */
|
||||||
|
- if (*ptr != '[')
|
||||||
|
+ if (*ptr != '[') {
|
||||||
|
q = strchr(ptr, ':');
|
||||||
|
if (!q) {
|
||||||
|
crit(logopt, MODPREFIX
|
||||||
|
"LDAP server name not found in %s", ptr);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
- else {
|
||||||
|
+ } else {
|
||||||
|
q = ++ptr;
|
||||||
|
while (*q == ':' || isxdigit(*q))
|
||||||
|
q++;
|
@ -8,7 +8,7 @@
|
|||||||
Summary: A tool for automatically mounting and unmounting filesystems
|
Summary: A tool for automatically mounting and unmounting filesystems
|
||||||
Name: autofs
|
Name: autofs
|
||||||
Version: 5.0.7
|
Version: 5.0.7
|
||||||
Release: 22%{?dist}
|
Release: 23%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -93,6 +93,7 @@ Patch77: autofs-5.0.7-fix-possible-use-after-free-in-lookup_dir-lookup_init.patc
|
|||||||
Patch78: autofs-5.0.7-add-changlog-entry-for-coverity-fixes.patch
|
Patch78: autofs-5.0.7-add-changlog-entry-for-coverity-fixes.patch
|
||||||
Patch79: autofs-5.0.7-fix-probe-each-nfs-version-in-turn-for-singleton-mounts.patch
|
Patch79: autofs-5.0.7-fix-probe-each-nfs-version-in-turn-for-singleton-mounts.patch
|
||||||
Patch80: autofs-5.0.7-misc-man-page-fixes.patch
|
Patch80: autofs-5.0.7-misc-man-page-fixes.patch
|
||||||
|
Patch81: autofs-5.0.7-fix-add-null-check-in-parse_server_string.patch
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
@ -230,6 +231,7 @@ echo %{version}-%{release} > .version
|
|||||||
%patch78 -p1
|
%patch78 -p1
|
||||||
%patch79 -p1
|
%patch79 -p1
|
||||||
%patch80 -p1
|
%patch80 -p1
|
||||||
|
%patch81 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir}
|
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir}
|
||||||
@ -321,6 +323,9 @@ fi
|
|||||||
%dir /etc/auto.master.d
|
%dir /etc/auto.master.d
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 28 2013 Ian Kent <ikent@redhat.com> - 1:5.0.7-23
|
||||||
|
- fix add null check in parse_server_string() (bz979155).
|
||||||
|
|
||||||
* Wed Jun 19 2013 Ian Kent <ikent@redhat.com> - 1:5.0.7-22
|
* Wed Jun 19 2013 Ian Kent <ikent@redhat.com> - 1:5.0.7-22
|
||||||
- misc man page fixes (bz948517).
|
- misc man page fixes (bz948517).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user