1
0

Fixed Error?

This commit is contained in:
daniel0916 2014-04-13 16:15:57 +02:00
parent 3733ee2c0e
commit d258be678a

View File

@ -147,7 +147,7 @@ bool cAuthenticator::AuthWithYggdrasil(AString & a_UserName, const AString & a_S
AString REQUEST; AString REQUEST;
int ret, server_fd = -1; int ret, server_fd = -1;
size_t len = -1; size_t len = -1;
unsigned char * buf; unsigned char buf[1024];
const char *pers = "cAuthenticator"; const char *pers = "cAuthenticator";
entropy_context entropy; entropy_context entropy;
@ -222,7 +222,7 @@ bool cAuthenticator::AuthWithYggdrasil(AString & a_UserName, const AString & a_S
REQUEST += "\r\n"; REQUEST += "\r\n";
len = REQUEST.size(); len = REQUEST.size();
buf = (unsigned char *)REQUEST.c_str(); strcpy((char *)buf, REQUEST.c_str());
while ((ret = ssl_write(&ssl, buf, len)) <= 0) while ((ret = ssl_write(&ssl, buf, len)) <= 0)
{ {