nat: Keep track of the error message.

This commit is contained in:
Holger Hans Peter Freyther
2011-05-02 20:03:17 +02:00
parent ef1e587008
commit 0dc36f1e3a

View File

@@ -563,10 +563,11 @@ static void bsc_nat_handle_paging(struct bsc_nat *nat, struct msgb *msg)
{
struct bsc_connection *bsc;
const uint8_t *paging_start;
int paging_length, i;
int paging_length, i, ret;
if (bsc_nat_find_paging(msg, &paging_start, &paging_length) != 0) {
LOGP(DNAT, LOGL_ERROR, "Could not parse paging message.\n");
ret = bsc_nat_find_paging(msg, &paging_start, &paging_length);
if (ret != 0) {
LOGP(DNAT, LOGL_ERROR, "Could not parse paging message: %d\n", ret);
return;
}