if we tell the client we're in error state, return.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 4 Nov 2010 23:12:50 +0000 (00:12 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 4 Nov 2010 23:12:50 +0000 (00:12 +0100)
if SNET would fail to open the temporary file, it would tell the client 'error' and continue to read -> hang
we now abort after reporting the error.

citadel/modules/network/serv_network.c

index e377c3f0a1e7f2a32e14ecdeab08b9e56b811096..679b9f44ce38f81630c29c72aceb34f5951e84a5 100644 (file)
@@ -458,6 +458,7 @@ void cmd_snet(char *argbuf) {
                        tempfilename,
                        strerror(errno));
                unlink(tempfilename);
+               return;
        }
        Line = NewStrBuf();