send defense to specified searchport instead of 1900

This commit is contained in:
Ralph Metzler 2015-11-24 23:08:27 +01:00
parent b3ec5429d4
commit dd41037506
1 changed files with 2 additions and 2 deletions

View File

@ -209,8 +209,8 @@ static int ssdp_defend(struct os_ssdp *ss)
ss->devid);
if (len < 0 || len >= sizeof(buf))
return -1;
return sendto(s, buf, len, 0, &ss->cadr, sizeof(ss->cadr));
//return sendto_port(ss->sock, buf, len, &ss->cadr, ss->csport);
//return sendto(s, buf, len, 0, &ss->cadr, sizeof(ss->cadr));
return sendto_port(ss->sock, buf, len, &ss->cadr, ss->csport);
}
static int send_reply_msearch(struct os_ssdp *ss, int mc, int send_id, int nr)