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>
Sat, 6 Nov 2010 11:48:06 +0000 (12:48 +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 7186ebdd9a11b93c339f39feb67cdfdbe7400489..a5ddd83e02ddf467c86f89f68c6729b5bfa571a5 100644 (file)
@@ -460,6 +460,7 @@ void cmd_snet(char *argbuf) {
                        tempfilename,
                        strerror(errno));
                unlink(tempfilename);
+               return;
        }
        Line = NewStrBuf();