mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-15 15:51:44 +00:00
Minor edit in net/udp.c
This commit is contained in:
parent
ab577e1a3a
commit
bf515d3d65
@ -114,7 +114,7 @@ int udp_buf_alloc ( struct udp_connection *conn, size_t len ) {
|
||||
* callback. The callback may use the buffer space
|
||||
*/
|
||||
int udp_senddata ( struct udp_connection *conn ) {
|
||||
conn->tx_pkb = pkb_alloc ( UDP_MAX_TXPKB );
|
||||
conn->tx_pkb = alloc_pkb ( UDP_MAX_TXPKB );
|
||||
if ( conn->tx_pkb == NULL ) {
|
||||
DBG ( "Error allocating packet buffer of length %d\n",
|
||||
UDP_MAX_TXPKB );
|
||||
|
Loading…
Reference in New Issue
Block a user