Skip to content
Snippets Groups Projects
Commit 9c7b0bfd authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Reset error code before calling the diskmanager

parent f7b41a9f
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,7 @@ extern "C" {
*/
std::ostringstream writeBuf;
writeBuf << "OPEN " << *errorcode << " " << transferMetaData;
*errorcode = 0;
try {
int sockfd = 0, n = 0;
......@@ -133,6 +134,7 @@ extern "C" {
writeBuf << ' ' << *errormsg;
free(*errormsg);
*errormsg = NULL;
*errorcode = 0;
}
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment