diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2010-06-01 02:19:57 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2010-06-01 02:19:57 +0000 |
commit | 02491f00e4d280aba9dccbbe7f837c3f484ec36a (patch) | |
tree | cfc0947ed3033b8d273af7fa8c5804ecbdf8ef71 /usr.sbin | |
parent | 5fd1856f0538bb6a08f545d909a2f02597f818f6 (diff) |
Don't interpret garbage on stack; problem seemingly exposed by my
queue rewrite. Proper fix after gilles wakes up.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/lka.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c index ed4d5cb3fda..996e3bc6a25 100644 --- a/usr.sbin/smtpd/lka.c +++ b/usr.sbin/smtpd/lka.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka.c,v 1.110 2010/06/01 02:08:56 jacekm Exp $ */ +/* $OpenBSD: lka.c,v 1.111 2010/06/01 02:19:56 jacekm Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -506,7 +506,7 @@ lka_resolve_node(struct smtpd *env, char *tag, struct path *path, struct expandn sizeof(path->user)) >= sizeof(path->user)) return 0; - if (psave.domain[0] == '\0') { + if (1 || psave.domain[0] == '\0') { if (strlcpy(path->domain, env->sc_hostname, sizeof(path->domain)) >= sizeof(path->domain)) return 0; |