git.samba.org
/
metze
/
ctdb
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a2c4c3
)
dont try to send error packets if the transport is down
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 30 Jun 2009 02:10:27 +0000
(12:10 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 30 Jun 2009 02:10:27 +0000
(12:10 +1000)
server/ctdb_call.c
patch
|
blob
|
history
diff --git
a/server/ctdb_call.c
b/server/ctdb_call.c
index 5e7261c12014167ce8824639e867bbef9c3aeaac..0df411e777db576ff817ca903f79a67cb262f6e7 100644
(file)
--- a/
server/ctdb_call.c
+++ b/
server/ctdb_call.c
@@
-69,6
+69,11
@@
static void ctdb_send_error(struct ctdb_context *ctdb,
char *msg;
int msglen, len;
+ if (ctdb->methods == NULL) {
+ DEBUG(DEBUG_ERR,(__location__ " Failed to send error. Transport is DOWN\n"));
+ return -1;
+ }
+
va_start(ap, fmt);
msg = talloc_vasprintf(ctdb, fmt, ap);
if (msg == NULL) {