From: Nathan Neulinger Date: Tue, 5 Aug 2014 16:45:38 +0000 (-0500) Subject: mod_skinny: calloc param ordering 1214234 X-Git-Tag: v1.4.8~7^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0b49f95de92e36e4fe9fa41bc2369f8ac9ba574;p=thirdparty%2Ffreeswitch.git mod_skinny: calloc param ordering 1214234 --- diff --git a/src/mod/endpoints/mod_skinny/skinny_protocol.c b/src/mod/endpoints/mod_skinny/skinny_protocol.c index 826971d286..5f3a831345 100644 --- a/src/mod/endpoints/mod_skinny/skinny_protocol.c +++ b/src/mod/endpoints/mod_skinny/skinny_protocol.c @@ -110,7 +110,7 @@ switch_status_t skinny_read_packet(listener_t *listener, skinny_message_t **req) char *ptr; switch_status_t status = SWITCH_STATUS_SUCCESS; - request = calloc(SKINNY_MESSAGE_MAXSIZE,1); + request = calloc(1,SKINNY_MESSAGE_MAXSIZE); if (!request) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to allocate memory.\n");