]> code.citadel.org Git - citadel.git/commitdiff
* Fix for crash when downloading multiple attachments
authorMichael Hampton <io_error@uncensored.citadel.org>
Sun, 21 Dec 2003 00:37:54 +0000 (00:37 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sun, 21 Dec 2003 00:37:54 +0000 (00:37 +0000)
citadel/ChangeLog
citadel/messages.c

index fb0dbbe734caa0b4e95094d3695315b2a3e70980..96782b910bd2b3479117b1284beaecf342b69426 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 613.3  2003/12/21 00:37:54  error
+ * Fix for crash when downloading multiple attachments
+
  Revision 613.2  2003/12/21 00:19:41  error
  * Image viewer code for the text client.  Hit 'I' to view an image
    attached to a file.  Hey aahz, this code actually works!
@@ -5170,4 +5173,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
 
-
index 57a13f548ece503b7b30548499b79f2308ac5a76..3911c42438551cb947364314c9d7ccdf7edddea5 100644 (file)
@@ -1696,7 +1696,10 @@ RMSGREAD:        scr_flush();
                                                extract_unsigned_long(cmd, 0),
                                                save_to);
                        }
-                       if (attachment) free(attachment);
+                       if (attachment) {
+                               free(attachment);
+                               attachment = NULL;
+                       }
                        goto RMSGREAD;
                case 'd':
                        scr_printf("*** Delete this message? ");