Merged aria2-0.13.0+1-peekbuf.patch, PATCH#1912038
@@ -1,3 +1,7 @@
+2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
+
+ Merged aria2-0.13.0+1-peekbuf.patch, PATCH#1912038
2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Merged aria2-0.13.0+1-dht.patch, PATCH#1911900
@@ -83,7 +83,7 @@ void SocketCore::init()
sslSession = NULL;
sslXcred = NULL;
peekBufMax = 4096;
- peekBuf = new char[peekBufMax];
+ peekBuf = 0;
peekBufLength = 0;
#endif //HAVE_LIBGNUTLS
}
@@ -582,6 +582,7 @@ void SocketCore::initiateSecureConnection()
if(ret < 0) {
throw new DlAbortEx(EX_SSL_INIT_FAILURE, gnutls_strerror(ret));
+ peekBuf = new char[peekBufMax];
#endif // HAVE_LIBGNUTLS