From: Andre Noll Date: Mon, 5 Feb 2007 20:22:22 +0000 (+0100) Subject: client_common.c: invalidate the private client data pointer on errors. X-Git-Tag: v0.2.15~40 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=974c42fd818babdfd2590df59b2a74a80398e826 client_common.c: invalidate the private client data pointer on errors. Not really neccessary, but clean. --- diff --git a/client_common.c b/client_common.c index 48b46da4..bf8a1a40 100644 --- a/client_common.c +++ b/client_common.c @@ -179,6 +179,7 @@ out: if (ret < 0) { PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret)); client_close(pcd); + *pcd_ptr = NULL; } return ret; }