if ((p = strchr (t, ':')))
{
*p++ = '\0';
- ciss->port = atoi (p);
+ if (mutt_atos (p, (short*) &ciss->port) < 0)
+ return NULL;
}
else
ciss->port = 0;
tmp = strchr (src, ':') + 1;
- ciss->path = ciss_parse_userhost (ciss, tmp);
+ if ((ciss->path = ciss_parse_userhost (ciss, tmp)) == NULL)
+ return -1;
url_pct_decode (ciss->path);
return 0;