]> granicus.if.org Git - rtmpdump/commitdiff
Fix ssl close
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Tue, 9 Mar 2010 07:18:48 +0000 (07:18 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Tue, 9 Mar 2010 07:18:48 +0000 (07:18 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@318 400ebc74-4327-4243-bc38-086b20814532

librtmp/rtmp.c

index 12c426b303ef949afbe05e5fedb20a6728d4df30..37b3e5727d9c7676debc85292991362667c7a92d 100644 (file)
@@ -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))