projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ce2bb6c
)
client_common.c: invalidate the private client data pointer on errors.
author
Andre Noll
<maan@systemlinux.org>
Mon, 5 Feb 2007 20:22:22 +0000
(21:22 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Mon, 5 Feb 2007 20:22:22 +0000
(21:22 +0100)
Not really neccessary, but clean.
client_common.c
patch
|
blob
|
history
diff --git
a/client_common.c
b/client_common.c
index
48b46da
..
bf8a1a4
100644
(file)
--- 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);
if (ret < 0) {
PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
client_close(pcd);
+ *pcd_ptr = NULL;
}
return ret;
}
}
return ret;
}