Commit 9bc16ba1 authored by Pekka Pessi's avatar Pekka Pessi

tport.c: tport_name_dup() now validates the input

darcs-hash:20080212192626-65a35-d6f9acae497f28ca3f8d8a71271ec391a9cd2d5a.gz
parent f6d8432e
......@@ -4655,6 +4655,9 @@ int tport_name_dup(su_home_t *home,
size_t n_proto, n_host, n_port, n_canon, n_comp = 0;
char *s;
if (!src->tpn_proto || !src->tpn_host || !src->tpn_port || !src->tpn_canon)
return -1;
if (strcmp(src->tpn_proto, tpn_any))
n_proto = strlen(src->tpn_proto) + 1;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment