client_common.c: invalidate the private client data pointer on errors.
authorAndre Noll <maan@systemlinux.org>
Mon, 5 Feb 2007 20:22:22 +0000 (21:22 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 5 Feb 2007 20:22:22 +0000 (21:22 +0100)
Not really neccessary, but clean.

client_common.c

index 48b46da..bf8a1a4 100644 (file)
@@ -179,6 +179,7 @@ out:
        if (ret < 0) {
                PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
                client_close(pcd);
+               *pcd_ptr = NULL;
        }
        return ret;
 }