/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2007 The OpenLDAP Foundation.
+ * Copyright 2007-2009 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* top-level directory of the distribution or, alternatively, at
* <http://www.OpenLDAP.org/license.html>.
*/
+/* ACKNOWLEDGEMENTS:
+ * This work was initially developed by Brian Candler for inclusion
+ * in OpenLDAP Software.
+ */
#include "portable.h"
if ( connect( fd, (struct sockaddr *)&sockun, sizeof(sockun) ) < 0 ) {
Debug( LDAP_DEBUG_ANY, "socket connect(%s) failed\n",
sockpath ? sockpath : "<null>", 0, 0 );
+ close( fd );
return( NULL );
}