nss-pam-ldapd commit: r1792 - nss-pam-ldapd/nss
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1792 - nss-pam-ldapd/nss
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1792 - nss-pam-ldapd/nss
- Date: Sat, 13 Oct 2012 23:14:57 +0200 (CEST)
Author: arthur
Date: Sat Oct 13 23:14:56 2012
New Revision: 1792
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1792&view=revision
Log:
return correct error for buffer too small (Solaris)
Modified:
nss-pam-ldapd/nss/hosts.c
Modified: nss-pam-ldapd/nss/hosts.c
==============================================================================
--- nss-pam-ldapd/nss/hosts.c Sat Oct 13 23:08:59 2012 (r1791)
+++ nss-pam-ldapd/nss/hosts.c Sat Oct 13 23:14:56 2012 (r1792)
@@ -279,7 +279,10 @@
}
}
if (strlen(args->buf.buffer)>=args->buf.buflen-1)
- return NSS_STR_PARSE_PARSE;
+ {
+ NSS_ARGS(args)->erange=1;
+ return NSS_NOTFOUND;
+ }
args->returnval=args->buf.buffer;
args->returnlen=strlen(args->returnval);
return NSS_STATUS_SUCCESS;
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd commit: r1792 - nss-pam-ldapd/nss,
Commits of the nss-pam-ldapd project