Slight modification to dothebarts disabling of the timeout for artv
authorDave West <davew@uncensored.citadel.org>
Mon, 14 Jul 2008 10:04:46 +0000 (10:04 +0000)
committerDave West <davew@uncensored.citadel.org>
Mon, 14 Jul 2008 10:04:46 +0000 (10:04 +0000)
import.
Now the dont_term flag is set after we are sure we can do artv (in case
the mallocs fail).

citadel/modules/vandelay/serv_vandelay.c

index 63805f410be6d5631cbb0e49cfe726856aa3e321..138a5e5c4754cc060bcabefc5c158e4eb85d0037 100644 (file)
@@ -819,8 +819,6 @@ void artv_do_import(void) {
        
        unbuffer_output();
 
-       CC->dont_term = 1;
-
        /* Prepare buffers for base 64 decoding of messages.
        */
        b64mes = malloc(SIZ);
@@ -843,6 +841,8 @@ void artv_do_import(void) {
        plain[0] = 0;
        plain_size = SIZ;
        
+       CC->dont_term = 1;
+
        cprintf("%d sock it to me\n", SEND_LISTING);
        abuf[0] = '\0';
        unbuffer_output();