l2tpd_packet: return 0 on success in l2tp_msgb_tx()
This commit is contained in:
parent
09742c5594
commit
e12de53b9b
|
@ -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;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue