xmalloc(foo*bar) -> xcalloc(foo, bar) for Portable
Roumen Petrov
openssh at roumenpetrov.info
Fri May 5 06:57:14 EST 2006
Darren Tucker wrote:
> ===================================================================
> RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/openbsd-compat/fake-rfc2553.c,v
> retrieving revision 1.6
> diff -u -p -r1.6 fake-rfc2553.c
> --- openbsd-compat/fake-rfc2553.c 25 Mar 2006 13:03:24 -0000 1.6
> +++ openbsd-compat/fake-rfc2553.c 4 May 2006 02:28:30 -0000
> @@ -115,7 +115,7 @@ addrinfo *malloc_ai(int port, u_long add
> {
> struct addrinfo *ai;
>
> - ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in));
> + ai = calloc(sizeof(*ai), sizeof(struct sockaddr_in));
Not sure
More information about the openssh-unix-dev
mailing list