From 974c42fd818babdfd2590df59b2a74a80398e826 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 5 Feb 2007 21:22:22 +0100 Subject: [PATCH] client_common.c: invalidate the private client data pointer on errors. Not really neccessary, but clean. --- client_common.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.2