Skip to content

Commit

Permalink
Fixed counting of extra UDP procs when UDP is not used
Browse files Browse the repository at this point in the history
Reported by Konrad Malewski
  • Loading branch information
bogdan-iancu committed Apr 24, 2019
1 parent 2f2ba23 commit 388ab01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/net_udp.c
Expand Up @@ -68,8 +68,10 @@ int udp_count_processes(unsigned int *extra)
struct socket_info *si;
unsigned int n, e, i;

if (udp_disabled)
if (udp_disabled) {
if (extra) *extra = 0;
return 0;
}

for( i=0,n=0,e=0 ; i<PROTO_LAST ; i++)
if (protos[i].id!=PROTO_NONE && is_udp_based_proto(i))
Expand Down

0 comments on commit 388ab01

Please sign in to comment.