]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_skinny: fix calloc argument ordering CID: 1214236 1214235
authorNathan Neulinger <nneul@neulinger.org>
Tue, 5 Aug 2014 16:52:52 +0000 (11:52 -0500)
committerNathan Neulinger <nneul@neulinger.org>
Tue, 5 Aug 2014 16:52:52 +0000 (11:52 -0500)
src/mod/endpoints/mod_skinny/skinny_protocol.h

index 3b0309a5ac64cc806f512ef61940ad2edf3ff29c..a0c5ad62609fee8a7301a8e1f9189b8db529fb72 100644 (file)
@@ -92,12 +92,12 @@ char* skinny_codec2string(skinny_codecs skinnycodec);
 /*****************************************************************************/
 
 #define skinny_create_message(message,msgtype,field) \
-    message = calloc(12 + sizeof(message->data.field), 1); \
+    message = calloc(1, 12 + sizeof(message->data.field)); \
     message->type = msgtype; \
     message->length = 4 + sizeof(message->data.field)
 
 #define skinny_create_empty_message(message,msgtype) \
-    message = calloc(12, 1); \
+    message = calloc(1, 12); \
     message->type = msgtype; \
     message->length = 4