l2tpd_packet: return 0 on success in l2tp_msgb_tx()

This commit is contained in:
Alexander Couzens 2016-10-24 05:37:52 +02:00 committed by Harald Welte
parent 09742c5594
commit e12de53b9b
1 changed files with 3 additions and 1 deletions

View File

@ -279,7 +279,9 @@ static int l2tp_msgb_tx(struct msgb *msg)
/* FIXME: put in the queue for reliable re-transmission */
ret = sendto(l2i->l2tp_ofd.fd, msgb_l2tph(msg), msgb_l2tplen(msg), 0, &l2c->remote.ss, sizeof(l2c->remote.ss));
return ret;
if (ret < 0)
return ret;
return 0;
}
/***********************************************************************