diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c index 559be75ac17e..5bfa85920f5a 100644 --- a/usr.sbin/lpr/lpc/lpc.c +++ b/usr.sbin/lpr/lpc/lpc.c @@ -169,7 +169,7 @@ cmdscanner() el_source(el, NULL); } if ((bp = el_gets(el, &num)) == NULL || num == 0) - return; + quit(0, NULL); len = (num > MAX_CMDLINE) ? MAX_CMDLINE : num; memcpy(cmdline, bp, len);