thanks, will be fixed shortly

as a side note this is not built and will be removed from smtpd
to be shipped as an external backend


On Fri, Jul 11, 2014 at 05:39:02AM +0000, Doug Hogan wrote:
> socket() returns -1 on error.
> 
> 
> Index: usr.sbin/smtpd/table_socketmap.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/smtpd/table_socketmap.c,v
> retrieving revision 1.4
> diff -u -p -d -r1.4 table_socketmap.c
> --- usr.sbin/smtpd/table_socketmap.c  8 Jul 2014 13:49:09 -0000       1.4
> +++ usr.sbin/smtpd/table_socketmap.c  11 Jul 2014 04:29:33 -0000
> @@ -125,7 +125,7 @@ table_socketmap_connect(const char *s)
>       return 1;
>  
>  err:
> -     if (sock) {
> +     if (sock != -1) {
>               close(sock);
>               sock = -1;
>       }
> 

-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

Reply via email to