git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5433fc8
)
Ignore scope identifier in IPv6 literal, it is not supported by c-ares
author
Zdeněk Salvet
<salvet@ics.muni.cz>
Wed, 28 Jul 2010 14:12:48 +0000
(14:12 +0000)
committer
Zdeněk Salvet
<salvet@ics.muni.cz>
Wed, 28 Jul 2010 14:12:48 +0000
(14:12 +0000)
on input.
org.glite.security.gss/src/glite_gss.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.security.gss/src/glite_gss.c
b/org.glite.security.gss/src/glite_gss.c
index
32f0c2b
..
bb38f31
100644
(file)
--- a/
org.glite.security.gss/src/glite_gss.c
+++ b/
org.glite.security.gss/src/glite_gss.c
@@
-151,7
+151,7
@@
static int asyn_getservbyname(struct sockaddr_storage *addrOut, socklen_t *a_len
struct timeval tv, *tvp;
struct timeval start_time,check_time;
int err = NETDB_INTERNAL;
- char *name2;
+ char *name2
, *p
;
size_t namelen;
name2 = name;
@@
-162,6
+162,9
@@
static int asyn_getservbyname(struct sockaddr_storage *addrOut, socklen_t *a_len
if (!name2) return NETDB_INTERNAL;
name2[namelen-1] = '\0';
name2++;
+ /* Ignore scope identifier, not supported by c-ares */
+ p = strchr(name2, '%');
+ if (p) *p = '\0';
}
/* start timer */