summaryrefslogtreecommitdiffstats
path: root/qmail-popup.c
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2014-01-27 15:37:28 +0100
committermanuel <manuel@mausz.at>2014-01-27 15:37:28 +0100
commit490c21cd94489729f34b4c4b690a4c103a78ec11 (patch)
tree813d8574e47b4097e2d595fc0c80b216c894536d /qmail-popup.c
parentb2596d21e976743f42a82b7a7a173c7874386bb4 (diff)
downloadqmail-490c21cd94489729f34b4c4b690a4c103a78ec11.tar.gz
qmail-490c21cd94489729f34b4c4b690a4c103a78ec11.tar.bz2
qmail-490c21cd94489729f34b4c4b690a4c103a78ec11.zip
make commands argument mandatory
Diffstat (limited to 'qmail-popup.c')
-rw-r--r--qmail-popup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/qmail-popup.c b/qmail-popup.c
index 5e6387a..8e5bc76 100644
--- a/qmail-popup.c
+++ b/qmail-popup.c
@@ -64,10 +64,10 @@ void die_badauth() { err("authorization failed"); }
64 64
65void err_syntax() { err("syntax error"); } 65void err_syntax() { err("syntax error"); }
66void err_wantuser() { err("USER first"); } 66void err_wantuser() { err("USER first"); }
67void err_authoriz() { err("authorization first"); } 67void err_authoriz(arg) char *arg; { err("authorization first"); }
68 68
69void okay() { puts("+OK \r\n"); flush(); } 69void okay(arg) char *arg; { puts("+OK \r\n"); flush(); }
70void pop3_quit() { okay(); die(); } 70void pop3_quit(arg) char *arg; { okay(); die(); }
71 71
72 72
73char unique[FMT_ULONG + FMT_ULONG + 3]; 73char unique[FMT_ULONG + FMT_ULONG + 3];
@@ -138,7 +138,7 @@ void pop3_greet()
138void pop3_user(arg) char *arg; 138void pop3_user(arg) char *arg;
139{ 139{
140 if (!*arg) { err_syntax(); return; } 140 if (!*arg) { err_syntax(); return; }
141 okay(); 141 okay(0);
142 seenuser = 1; 142 seenuser = 1;
143 if (!stralloc_copys(&username,arg)) die_nomem(); 143 if (!stralloc_copys(&username,arg)) die_nomem();
144 if (!stralloc_0(&username)) die_nomem(); 144 if (!stralloc_0(&username)) die_nomem();