From: Alan T. DeKok Date: Thu, 16 Aug 2018 18:58:04 +0000 (-0400) Subject: return NULL, not -1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bca42ec393032b3604d05ede4e9caacf1af10e79;p=thirdparty%2Ffreeradius-server.git return NULL, not -1 --- diff --git a/src/lib/io/master.c b/src/lib/io/master.c index d887365f04e..0381207c807 100644 --- a/src/lib/io/master.c +++ b/src/lib/io/master.c @@ -618,7 +618,7 @@ static fr_io_connection_t *fr_io_connection_alloc(fr_io_instance_t *inst, fr_io_ if (fr_ipaddr_to_sockaddr(&connection->address->src_ipaddr, connection->address->src_port, &src, &salen) < 0) { DEBUG("Failed getting IP address"); talloc_free(dl_inst); - return -1; + return NULL; } if (connect(fd, (struct sockaddr *) &src, salen) < 0) {