jl777 8 years ago
parent
commit
6d97db3fdf
  1. 2
      iguana/dpow/dpow_network.c

2
iguana/dpow/dpow_network.c

@ -146,7 +146,7 @@ void dpow_send(struct supernet_info *myinfo,struct dpow_info *dp,struct dpow_blo
void dpow_ipbitsadd(struct supernet_info *myinfo,uint32_t *ipbits,int32_t numipbits) void dpow_ipbitsadd(struct supernet_info *myinfo,uint32_t *ipbits,int32_t numipbits)
{ {
int32_t i,j,matched,missing,n; char ipaddr[64]; int32_t i,j,matched,missing,n; char ipaddr[64];
if ( numipbits < 1 ) if ( numipbits < 1 || numipbits >= 64 )
return; return;
n = myinfo->numdpowipbits; n = myinfo->numdpowipbits;
matched = missing = 0; matched = missing = 0;

Loading…
Cancel
Save