diff options
author | Michael Adam <obnox@samba.org> | 2017-11-16 01:53:21 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2018-03-23 01:45:10 +0100 |
commit | badb6435d616066a8648152a24a09f9e090a6e5e (patch) | |
tree | d8077ea4590495a828d7379f05573af11adb32dd /src/upstream.c | |
parent | 8d0ea71486688323fff65bc3730bae209a70db7b (diff) |
upstream: Fix case of empty string domain.
Found by compiler note.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'src/upstream.c')
-rw-r--r-- | src/upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upstream.c b/src/upstream.c index 38afacd..327b727 100644 --- a/src/upstream.c +++ b/src/upstream.c @@ -124,7 +124,7 @@ static struct upstream *upstream_build (const char *host, int port, const char * log_message (LOG_INFO, "Added no-upstream for %s", domain); } else { if (!host || host[0] == '\0' || port < 1 || !domain - || domain == '\0') { + || domain[0] == '\0') { log_message (LOG_WARNING, "Nonsense upstream rule: invalid parameters"); goto fail; |