From e46fdd38d853aefc13e91a7c598d7b3b528dae66 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Sun, 26 Jul 2020 18:54:01 +0400 Subject: [PATCH] Fix dereference of null pointer in site_get_subdir --- .update | 2 +- libsofia-sip-ua/nth/nth_server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.update b/.update index 7a6ac7b1..7289fdee 100644 --- a/.update +++ b/.update @@ -1 +1 @@ -Thu Jun 18 11:23:10 UTC 2020 +Sun Jun 26 14:53:10 UTC 2020 diff --git a/libsofia-sip-ua/nth/nth_server.c b/libsofia-sip-ua/nth/nth_server.c index 5fcb15a5..3e694f6f 100644 --- a/libsofia-sip-ua/nth/nth_server.c +++ b/libsofia-sip-ua/nth/nth_server.c @@ -844,7 +844,7 @@ void server_request(server_t *srv, if (path == NULL) path = ""; - if (path[0]) + if (path[0] && site) subsite = site_get_subdir(site, path, &subpath); if (subsite)