From 02e10f64f923cd90e2e20b4b19cf149d53bc564e Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Wed, 16 Mar 2016 11:05:54 -0400 Subject: libexport.a: fix missing brace in host_ntop() fallback An if statement has been missing a brace since host_ntop() was added in commit 94ce1eb94babb4c587b2826452fb053cba745098 ("libexport.a: Add helpers to manage DNS lookups"). Signed-off-by: Stefan Hajnoczi Signed-off-by: Steve Dickson --- support/export/hostname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support/export/hostname.c') diff --git a/support/export/hostname.c b/support/export/hostname.c index 4daabe9..94e98a5 100644 --- a/support/export/hostname.c +++ b/support/export/hostname.c @@ -69,7 +69,7 @@ host_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) memset(buf, 0, buflen); - if (sin->sin_family != AF_INET) + if (sin->sin_family != AF_INET) { (void)strncpy(buf, "bad family", buflen - 1); return buf; } -- cgit