From: Marcin Krol Date: Fri, 17 Jul 2015 20:16:25 +0000 (+0000) Subject: - compilation fix (from PLD) X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=cd712c29c4700f17ae120b6ea19698a0c84c5f29;p=packages%2Fopenssh.git - compilation fix (from PLD) --- diff --git a/openssh-ldap.patch b/openssh-ldap.patch index 994ef59..67a7c07 100644 --- a/openssh-ldap.patch +++ b/openssh-ldap.patch @@ -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 = "";