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:
csoler 2015-03-21 08:02:49 +00:00
parent 40f24b5bd3
commit 562eeaaae8

View File

@ -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) ;
}
}