Hi, I found some missing check for windows int init_slot function in vacuumdb.c

in windows
SOCKET is unsigned type. so

slot->sock < 0 never can be under 0.

so this patch just check using slot->sock == PGINVALID_SOCKET

Thanks.

Attachment: simple_check.patch
Description: Binary data

Reply via email to