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

tport.c: tport_name_dup() now validates the input

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;
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