For some connection types nicesock->fileno is never set. Make sure it is not NULL before using it.
Attach a file by drag & drop or click to upload