From 7c777f29c191af60e798004ebe81eec3fa9091a9 Mon Sep 17 00:00:00 2001 From: hyc Date: Tue, 9 Mar 2010 07:18:48 +0000 Subject: [PATCH] Fix ssl close git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@318 400ebc74-4327-4243-bc38-086b20814532 --- librtmp/rtmp.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c index 12c426b..37b3e57 100644 --- a/librtmp/rtmp.c +++ b/librtmp/rtmp.c @@ -2571,20 +2571,13 @@ RTMPSockBuf_Send(RTMPSockBuf *sb, const char *buf, int len) int RTMPSockBuf_Close(RTMPSockBuf *sb) { - int rc; - if (sb->sb_ssl) { SSL_shutdown(sb->sb_ssl); SSL_free(sb->sb_ssl); sb->sb_ssl = NULL; - rc = 0; - } - else - { - rc = closesocket(sb->sb_socket); } - return rc; + return closesocket(sb->sb_socket); } #define HEX2BIN(a) (((a)&0x40)?((a)&0xf)+9:((a)&0xf)) -- 2.40.0