summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2012-08-22 11:44:34 +0000
committereric <eric@openbsd.org>2012-08-22 11:44:34 +0000
commit6916573a395b945514d13edf995f09d17382f93b (patch)
tree94d0c4f2f3c11c6f2f60f435a2487fd483fbe40a
parenthex constants unsigned, prevents some gcc warnings (diff)
downloadwireguard-openbsd-6916573a395b945514d13edf995f09d17382f93b.tar.xz
wireguard-openbsd-6916573a395b945514d13edf995f09d17382f93b.zip
also need to compare backupname if set.
-rw-r--r--usr.sbin/smtpd/mta.c5
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);