projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db40cd1
)
Check for invalid COMSTACK addresses
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 16 Aug 2011 08:27:20 +0000
(10:27 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 16 Aug 2011 08:27:20 +0000
(10:27 +0200)
Check return value of cs_parse_host in cs_create_host_proxy. For
example, yaz-url would SEGV if ssl/https was given and SSL was
not enabled in the built (as it happens on Windows).
src/comstack.c
patch
|
blob
|
history
diff --git
a/src/comstack.c
b/src/comstack.c
index
b81e89c
..
74faf5c
100644
(file)
--- a/
src/comstack.c
+++ b/
src/comstack.c
@@
-169,7
+169,8
@@
COMSTACK cs_create_host_proxy(const char *vhost, int blocking, void **vp,
CS_TYPE t;
char *connect_host = 0;
- cs_parse_host(vhost, &host, &t, &proto, &connect_host);
+ if (!cs_parse_host(vhost, &host, &t, &proto, &connect_host))
+ return 0;
if (t == tcpip_type)
{