Commit 4676e655 authored by Constantin Rack's avatar Constantin Rack

Merge pull request #1411 from jens-auer/address-sanitizer

Fixed out-of-bounds access when releasing socket handles.
parents a146503d d337cf5a
......@@ -84,6 +84,7 @@ int main (void)
}
}
// Release the socket handles
while (count)
close (handle [count--]);
for (count = 0; count < 1000; count++) {
close(handle[count]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment