mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-21 23:56:56 +02:00
Fixed out-of-bounds access when releasing socket handles.
This commit is contained in:
@@ -84,6 +84,7 @@ int main (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Release the socket handles
|
// Release the socket handles
|
||||||
while (count)
|
for (count = 0; count < 1000; count++) {
|
||||||
close (handle [count--]);
|
close(handle[count]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user