tcp: Pass NULL as hostname to getaddrinfo if the string is empty
authorJordi Ortiz <nenjordi@gmail.com>
Tue, 26 Jun 2012 17:22:21 +0000 (19:22 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 27 Jun 2012 11:04:02 +0000 (14:04 +0300)
commitef882e464ab270276f56c1088da646a8080b8460
tree32e409b0b1bdb6bb33f361c479a0a6ce1150e45e
parent58f3e09ee4cd7fe4b757797f0828fc3549c58535
tcp: Pass NULL as hostname to getaddrinfo if the string is empty

This gives you the proper v4 or v6 version of the "any address",
allowing receiving connections on any address on the machine.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/tcp.c