]> 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)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 5 Aug 2014 17:14:21 +0000 (22:14 +0500)
src/mod/endpoints/mod_skinny/skinny_protocol.h

index 4ea82ec057d71fbffd1e346bc25db737083c2131..c15e604c9d305139b4f369f68a8d36f044a01d1f 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