domain-control: don't fail decoding a fully empty set message.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 9 May 2014 14:59:47 +0000 (17:59 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 9 May 2014 15:00:10 +0000 (18:00 +0300)
src/plugins/domain-control/message.c

index 5c071a9..48e93b1 100644 (file)
@@ -450,7 +450,7 @@ msg_t *msg_decode_set(mrp_msg_t *msg)
 
     values = mrp_allocz(sizeof(*values) * ntotal);
 
-    if (values == NULL)
+    if (values == NULL && ntotal > 0)
         goto fail;
 
     d = set->tables;