Skip to content

Commit 100be54

Browse files
authored
Merge pull request #7 from freeswitch/deref
Fix dereference of null pointer in site_get_subdir
2 parents 1df2960 + e46fdd3 commit 100be54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.update

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Thu Jun 18 11:23:10 UTC 2020
1+
Sun Jun 26 14:53:10 UTC 2020

libsofia-sip-ua/nth/nth_server.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ void server_request(server_t *srv,
844844
if (path == NULL)
845845
path = "";
846846

847-
if (path[0])
847+
if (path[0] && site)
848848
subsite = site_get_subdir(site, path, &subpath);
849849

850850
if (subsite)

0 commit comments

Comments
 (0)