diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2018-11-02 12:47:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2018-11-02 12:47:36 +0000 |
commit | a868fc272224cc8737e2925aa5cc94f0dd0bc8d6 (patch) | |
tree | 08d9870aad844197ed4a2a7356a00b4488dc07f4 | |
parent | e8bdab3538f60f6c3aab62730ce9a6906beff573 (diff) | |
parent | 875007d15f4a73cd2c1078d821b16008f34a8abf (diff) |
Merge "afb-socket: Relax requirement of tcp ending slash"
-rw-r--r-- | src/afb-socket.c | 2 |
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; |