mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -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
@ -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…
Reference in New Issue
Block a user