https://bugs.openldap.org/show_bug.cgi?id=10012
--- Comment #2 from balaev@tarantool.org --- (In reply to Howard Chu from comment #1)
Who cares? The fcntl call would just fail with EBADF.
Some static analyzers (for example, svace) generate warnings on such code. In fact, yes, there is no problem as such. It just performs a meaningless action in case socket(2) fails.