]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_skinny: calloc param ordering 1214234
authorNathan Neulinger <nneul@neulinger.org>
Tue, 5 Aug 2014 16:45:38 +0000 (11:45 -0500)
committerNathan Neulinger <nneul@neulinger.org>
Tue, 5 Aug 2014 16:45:38 +0000 (11:45 -0500)
src/mod/endpoints/mod_skinny/skinny_protocol.c

index 826971d28624245cf407792bf94504a65048744b..5f3a8313459008267cb04c9b1b30fa7d6acd3090 100644 (file)
@@ -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");