diff --git a/netcode.c b/netcode.c index da00120..98b9730 100755 --- a/netcode.c +++ b/netcode.c @@ -751,7 +751,7 @@ void netcode_socket_set_qos( struct netcode_socket_t * socket, struct netcode_ad if ( netcode_set_socket_codepoint( socket->handle, QOSTrafficTypeAudioVideo, 0, (struct sockaddr*)&addr ) != 0 ) { netcode_printf( NETCODE_LOG_LEVEL_ERROR, "error: failed to enable packet tagging (ipv6)\n" ); - netcode_socket_destroy( s ); + netcode_socket_destroy( socket ); return NETCODE_SOCKET_ERROR_ENABLE_PACKET_TAGGING_FAILED; } } @@ -772,7 +772,7 @@ void netcode_socket_set_qos( struct netcode_socket_t * socket, struct netcode_ad if ( netcode_set_socket_codepoint( socket->handle, QOSTrafficTypeAudioVideo, 0, (struct sockaddr*)&addr ) != 0 ) { netcode_printf( NETCODE_LOG_LEVEL_ERROR, "error: failed to enable packet tagging (ipv4)\n" ); - netcode_socket_destroy( s ); + netcode_socket_destroy( socket ); return NETCODE_SOCKET_ERROR_ENABLE_PACKET_TAGGING_FAILED; } }