Refs review #17361: TR69: ACS stops communicating when CPE has 2 interfaces and only first interface receives ACS URL

This commit is contained in:
Feten Besbes 2019-12-02 14:39:00 +01:00
parent 666d1f440d
commit 0ff10df59d

8
http.c
View file

@ -68,20 +68,20 @@ int http_client_init(struct cwmp *cwmp)
}
}else {
if (asprintf(&http_c.url, "%s", cwmp->conf.acsurl) == -1) {
free(acs_var_stat);
free(dhcp_dis);
return -1;
}
}
free(acs_var_stat);
} else {
if (asprintf(&http_c.url, "%s", cwmp->conf.acsurl) == -1) {
free(dhcp_dis);
if(dhcp_dis)
free(dhcp_dis);
return -1;
}
}
#endif
free(dhcp_dis);
if(dhcp_dis)
free(dhcp_dis);
#ifdef HTTP_ZSTREAM
char *add = strstr(cwmp->conf.acsurl,"://");
if(!add) return -1;