Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
e8bdab3
)
Merge "afb-socket: Relax requirement of tcp ending slash"
author
Jan-Simon Moeller
<jsmoeller@linuxfoundation.org>
Fri, 2 Nov 2018 12:47:36 +0000
(12:47 +0000)
committer
Gerrit Code Review
<gerrit@automotivelinux.org>
Fri, 2 Nov 2018 12:47:36 +0000
(12:47 +0000)
src/afb-socket.c
patch
|
blob
|
history
diff --git
a/src/afb-socket.c
b/src/afb-socket.c
index
63de2cf
..
ee3cfbe
100644
(file)
--- 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 = strchr
nul
(spec, '/');
service = strchr(spec, ':');
if (tail == NULL || service == NULL || tail < service) {
errno = EINVAL;