diff options
author | 2012-08-22 11:44:34 +0000 | |
---|---|---|
committer | 2012-08-22 11:44:34 +0000 | |
commit | 6916573a395b945514d13edf995f09d17382f93b (patch) | |
tree | 94d0c4f2f3c11c6f2f60f435a2487fd483fbe40a | |
parent | hex constants unsigned, prevents some gcc warnings (diff) | |
download | wireguard-openbsd-6916573a395b945514d13edf995f09d17382f93b.tar.xz wireguard-openbsd-6916573a395b945514d13edf995f09d17382f93b.zip |
also need to compare backupname if set.
-rw-r--r-- | usr.sbin/smtpd/mta.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/mta.c b/usr.sbin/smtpd/mta.c index 346de9e375b..52fa5ebac5e 100644 --- a/usr.sbin/smtpd/mta.c +++ b/usr.sbin/smtpd/mta.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta.c,v 1.136 2012/08/21 20:19:46 eric Exp $ */ +/* $OpenBSD: mta.c,v 1.137 2012/08/22 11:44:34 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -561,6 +561,9 @@ mta_route_cmp(struct mta_route *a, struct mta_route *b) if (a->cert && ((r = strcmp(a->cert, b->cert)))) return (r); + if (a->backupname && ((r = strcmp(a->backupname, b->backupname)))) + return (r); + if ((r = strcmp(a->hostname, b->hostname))) return (r); |