summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-11-02 12:47:36 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-11-02 12:47:36 +0000
commita868fc272224cc8737e2925aa5cc94f0dd0bc8d6 (patch)
tree08d9870aad844197ed4a2a7356a00b4488dc07f4
parente8bdab3538f60f6c3aab62730ce9a6906beff573 (diff)
parent875007d15f4a73cd2c1078d821b16008f34a8abf (diff)
Merge "afb-socket: Relax requirement of tcp ending slash"
-rw-r--r--src/afb-socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-socket.c b/src/afb-socket.c
index 63de2cf2..ee3cfbe2 100644
--- a/src/afb-socket.c
+++ b/src/afb-socket.c
@@ -165,7 +165,7 @@ static int open_tcp(const char *spec, int server)
struct addrinfo hint, *rai, *iai;
/* scan the uri */
- tail = strchr(spec, '/');
+ tail = strchrnul(spec, '/');
service = strchr(spec, ':');
if (tail == NULL || service == NULL || tail < service) {
errno = EINVAL;