summaryrefslogtreecommitdiffstats
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/messages_ctdbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/messages_ctdbd.c b/source3/lib/messages_ctdbd.c
index 53aeb1fd05..dbca1038e3 100644
--- a/source3/lib/messages_ctdbd.c
+++ b/source3/lib/messages_ctdbd.c
@@ -113,7 +113,7 @@ static int messaging_ctdb_send(struct server_id src,
}
buf = talloc_array(talloc_tos(), uint8_t, buflen);
- if (buflen == NULL) {
+ if (buf == NULL) {
return ENOMEM;
}
iov_buf(iov, iovlen, buf, buflen);