From: Nathan Neulinger Date: Tue, 5 Aug 2014 16:52:52 +0000 (-0500) Subject: mod_skinny: fix calloc argument ordering CID: 1214236 1214235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0aaf0cc163b54f98d3d08c03edf315b36eb85bd;p=thirdparty%2Ffreeswitch.git mod_skinny: fix calloc argument ordering CID: 1214236 1214235 --- diff --git a/src/mod/endpoints/mod_skinny/skinny_protocol.h b/src/mod/endpoints/mod_skinny/skinny_protocol.h index 4ea82ec057..c15e604c9d 100644 --- a/src/mod/endpoints/mod_skinny/skinny_protocol.h +++ b/src/mod/endpoints/mod_skinny/skinny_protocol.h @@ -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