mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
fixed compilation problem in ApiServer
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8061 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
40f24b5bd3
commit
562eeaaae8
1 changed files with 2 additions and 2 deletions
|
@ -33,13 +33,13 @@ struct MHD_Response * MHD_create_response_from_fd(size_t size, int fd)
|
|||
if(buf == 0 || read(fd,buf,size) != size)
|
||||
{
|
||||
std::cerr << "malloc failed or READ error in file descriptor " << fd << " requested read size was " << size << std::endl;
|
||||
fclose(fd);
|
||||
close(fd);
|
||||
free(buf) ;
|
||||
return NULL ;
|
||||
}
|
||||
else
|
||||
{
|
||||
fclose(fd);
|
||||
close(fd);
|
||||
return MHD_create_response_from_data(size, buf,1,0) ;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue