]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8582 #resolve make sure the URL being passed here is not null
authorKen Rice <krice@freeswitch.org>
Fri, 27 Nov 2015 16:39:38 +0000 (10:39 -0600)
committerKen Rice <krice@freeswitch.org>
Fri, 27 Nov 2015 16:39:38 +0000 (10:39 -0600)
src/mod/applications/mod_httapi/mod_httapi.c

index 93a70972f8c845f038abcd7ffaadead678bba3c7..62055d736f46060cab2fe1198b19fd52e28c0a21 100644 (file)
@@ -2206,7 +2206,7 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
 
        var = switch_event_get_header(client->params, "url");
 
-       if (client->record.action) {
+       if (var && client->record.action) {
                if (strcmp(var, client->record.action)) {
                        switch_event_add_header_string(client->one_time_params, SWITCH_STACK_BOTTOM, "url", client->record.action);
                        httapi_sync(client);