diff -uN qmail-1.03-orig/qmail-getpw.c qmail-1.03/qmail-getpw.c --- qmail-1.03-orig/qmail-getpw.c 2003-03-14 14:59:49.000000000 +0100 +++ qmail-1.03/qmail-getpw.c 2003-03-14 15:00:50.000000000 +0100 @@ -100,10 +100,8 @@ dash = auto_break; pw = getpwnam(auto_usera); } - - if (connection) disconnect_mysql(); - - if (!pw) _exit(QLX_NOALIAS); + + if (!pw) { disconnect_mysql(); _exit(QLX_NOALIAS); } substdio_puts(subfdoutsmall,pw->pw_name); substdio_put(subfdoutsmall,"",1); @@ -119,5 +117,7 @@ substdio_put(subfdoutsmall,"",1); substdio_flush(subfdoutsmall); + if (connection) disconnect_mysql(); + _exit(0); }