tcp: Check the return value from getsockopt
authorMartin Storsjö <martin@martin.st>
Tue, 19 Jun 2012 14:50:38 +0000 (17:50 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 19 Jun 2012 17:25:07 +0000 (20:25 +0300)
commitbb6c1abb0e022e1edaa5b3d8bb5abdff4f0c0ff2
tree14059fa897529441e1dc7dc8a5f011032b2c500d
parenta840cdda6cf7dbfe6858739f718d2ede9e3c375b
tcp: Check the return value from getsockopt

Make sure we actually have an error code in ret, in case
getsockopt failed.

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