[gprs] NS: update the remote peer IP addr/port on NS RESET

This commit is contained in:
Harald Welte 2010-05-11 18:40:45 +02:00
parent bba902db19
commit 2b7d4658fb
1 changed files with 2 additions and 1 deletions

View File

@ -511,8 +511,9 @@ int gprs_ns_rcvmsg(struct gprs_ns_inst *nsi, struct msgb *msg,
LOGP(DNS, LOGL_INFO, "Creating NS-VC for BSS at %s:%u\n",
inet_ntoa(saddr->sin_addr), ntohs(saddr->sin_port));
nsvc = nsvc_create(nsi, 0xffff);
nsvc->ip.bts_addr = *saddr;
}
/* Update the remote peer IP address/port */
nsvc->ip.bts_addr = *saddr;
} else
msgb_nsei(msg) = nsvc->nsei;