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 48b46da44e73768335724790a2cb973459dd66de..bf8a1a40aa1556001d9d52f0c33993f37db9a143 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;
 }