]> TLD Linux GIT Repositories - packages/openssh.git/commitdiff
- compilation fix (from PLD)
authorMarcin Krol <hawk@tld-linux.org>
Fri, 17 Jul 2015 20:16:25 +0000 (20:16 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Fri, 17 Jul 2015 20:16:25 +0000 (20:16 +0000)
openssh-ldap.patch

index 994ef59a43af613ac34fc3a0d739ca024bea8a8a..67a7c075976dc370d2fb791865a239c7f14b1e7c 100644 (file)
@@ -1302,7 +1302,7 @@ diff -up openssh-6.2p2/ldapconf.c.ldap openssh-6.2p2/ldapconf.c
 +              len = snprintf (options.uri, MAXURILEN, "ldap%s://%s:%d",
 +                  (options.ssl == 0) ? "" : "s", options.host, options.port);
 +              options.uri[MAXURILEN - 1] = 0;
-+              options.uri = xrealloc (options.uri, len + 1, 1);
++              options.uri = xreallocarray (options.uri, len + 1, 1);
 +      }
 +      if (options.binddn == NULL)
 +          options.binddn = "";