diff options
Diffstat (limited to 'src/net/udp.c')
| -rw-r--r-- | src/net/udp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/udp.c b/src/net/udp.c index 1aa0e4968..dcc69c36c 100644 --- a/src/net/udp.c +++ b/src/net/udp.c @@ -110,6 +110,7 @@ static int udp_open_common ( struct xfer_interface *xfer, if ( ! udp ) return -ENOMEM; DBGC ( udp, "UDP %p allocated\n", udp ); + ref_init ( &udp->refcnt, NULL ); xfer_init ( &udp->xfer, &udp_xfer_operations, &udp->refcnt ); if ( st_peer ) memcpy ( &udp->peer, st_peer, sizeof ( udp->peer ) ); |
