]> 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)
committerMichael Jerris <mike@jerris.com>
Mon, 7 Dec 2015 17:18:51 +0000 (12:18 -0500)
src/mod/applications/mod_httapi/mod_httapi.c

index 844f1707dd398549389c10500aaf46f706a8cbb5..bda956111b8528310b75d5a973879c276969fa95 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);