Module: kamailio
Branch: master
Commit: 5f62d05180c7148f3899732dfc0da44034a314f8
URL:
https://github.com/kamailio/kamailio/commit/5f62d05180c7148f3899732dfc0da44…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-08T16:50:51+01:00
rls: avoid walking a null string
---
Modified: src/modules/rls/notify.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5f62d05180c7148f3899732dfc0da44…
Patch:
https://github.com/kamailio/kamailio/commit/5f62d05180c7148f3899732dfc0da44…
---
diff --git a/src/modules/rls/notify.c b/src/modules/rls/notify.c
index 9b5c3a5806..55a7019032 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;
}