mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-02-19 10:41:21 +01:00
Refs review #17361: TR69: ACS stops communicating when CPE has 2 interfaces and only first interface receives ACS URL
This commit is contained in:
parent
666d1f440d
commit
0ff10df59d
1 changed files with 4 additions and 4 deletions
8
http.c
8
http.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue