From b8698724134095814339701c19f0d02bb37caa89 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 8 Dec 2017 16:44:56 +0100 Subject: [PATCH] rls: avoid walking a null string (cherry picked from commit 5f62d05180c7148f3899732dfc0da44034a314f8) --- src/modules/rls/notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/rls/notify.c b/src/modules/rls/notify.c index 9b5c3a58062..55a7019032b 100644 --- a/src/modules/rls/notify.c +++ b/src/modules/rls/notify.c @@ -1220,7 +1220,7 @@ int parse_xcap_uri(char *uri, str *host, unsigned short *port, str *path) } } - while(path->s[path->len] != '\0') path->len++; + while(path->s != NULL && path->s[path->len] != '\0') path->len++; return 1; }