mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-16 01:43:35 +02:00
src/nhttpd: fix segfault if logging on
Origin commit data
------------------
Branch: ni/coolstream
Commit: fe16513b4f
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-12-07 (Fri, 07 Dec 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -65,6 +65,8 @@ bool CmAuth::CheckAuth(CyhookHandler *hh) {
|
||||
// decode Base64 buffer to String
|
||||
//-----------------------------------------------------------------------------
|
||||
std::string CmAuth::decodeBase64(const char *b64buffer) {
|
||||
if(b64buffer==NULL)
|
||||
return "";
|
||||
char *newString; //shorter then b64buffer
|
||||
std::string result;
|
||||
if ((newString = (char *) malloc(sizeof(char) * strlen(b64buffer) + 1))
|
||||
|
Reference in New Issue
Block a user