only a user-part was supplied.
ok millert@ and eric@
-/* $OpenBSD: util.c,v 1.136 2018/05/31 21:06:12 gilles Exp $ */
+/* $OpenBSD: util.c,v 1.137 2018/09/02 21:06:44 gilles Exp $ */
/*
* Copyright (c) 2000,2001 Markus Friedl. All rights reserved.
if (m2.user[0] == '\0' && m2.domain[0] == '\0')
return 1;
- if (!hostname_match(m1.domain, m2.domain))
+ if (m2.domain[0] && !hostname_match(m1.domain, m2.domain))
return 0;
if (m2.user[0]) {