[rtmpdump] r318 - trunk/librtmp/rtmp.c

hyc subversion at mplayerhq.hu
Tue Mar 9 08:18:49 CET 2010


Author: hyc
Date: Tue Mar  9 08:18:48 2010
New Revision: 318

Log:
Fix ssl close

Modified:
   trunk/librtmp/rtmp.c

Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c	Tue Mar  9 08:05:57 2010	(r317)
+++ trunk/librtmp/rtmp.c	Tue Mar  9 08:18:48 2010	(r318)
@@ -2571,20 +2571,13 @@ RTMPSockBuf_Send(RTMPSockBuf *sb, const 
 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))


More information about the rtmpdump mailing list