summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-12-10 23:00:43 +0100
committerAmitay Isaacs <amitay@samba.org>2014-12-17 09:26:07 +0100
commit8367089b73cfffdfa809fe3ef27774d4902cdd11 (patch)
treea360969db9603c6905f2704737b40864f5414eb7
parent6604b7bd8dbda9ba010452ec0d210f6424834231 (diff)
downloadsamba-8367089b73cfffdfa809fe3ef27774d4902cdd11.tar.gz
samba-8367089b73cfffdfa809fe3ef27774d4902cdd11.tar.xz
samba-8367089b73cfffdfa809fe3ef27774d4902cdd11.zip
s3:lib: fix allocation check in messages_ctdbd.c
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
-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);