comparison src/smtp_in.c @ 81:71ce3a1568e9

moved check for NULL into destroy_message()
author meillo@marmaro.de
date Sat, 19 Jun 2010 11:14:34 +0200
parents e5090ac234cf
children 5ec5e6637049
comparison
equal deleted inserted replaced
80:e5090ac234cf 81:71ce3a1568e9
319 msg = NULL; 319 msg = NULL;
320 break; 320 break;
321 321
322 case SMTP_QUIT: 322 case SMTP_QUIT:
323 smtp_printf(out, "221 goodbye\r\n"); 323 smtp_printf(out, "221 goodbye\r\n");
324 if (msg) { 324 destroy_message(msg);
325 destroy_message(msg); 325 msg = NULL;
326 }
327 return; 326 return;
328 327
329 case SMTP_RSET: 328 case SMTP_RSET:
330 psc->from_seen = psc->rcpt_seen = FALSE; 329 psc->from_seen = psc->rcpt_seen = FALSE;
331 if (msg) { 330 destroy_message(msg);
332 destroy_message(msg); 331 msg = NULL;
333 msg = NULL;
334 }
335 smtp_printf(out, "250 OK\r\n"); 332 smtp_printf(out, "250 OK\r\n");
336 break; 333 break;
337 334
338 case SMTP_NOOP: 335 case SMTP_NOOP:
339 smtp_printf(out, "250 OK\r\n"); 336 smtp_printf(out, "250 OK\r\n");