lists.arthurdejong.org
RSS feed

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



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/