diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2016-03-16 11:05:54 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2016-03-16 12:21:55 -0400 |
commit | 02e10f64f923cd90e2e20b4b19cf149d53bc564e (patch) | |
tree | e4aa791b1233dca6853d2cb473a72cff0529e420 /support/export | |
parent | 3904d8102cbc76b26feccd573cb475fbf346c977 (diff) | |
download | nfs-utils-02e10f64f923cd90e2e20b4b19cf149d53bc564e.tar.gz |
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 <stefanha@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export')
-rw-r--r-- | support/export/hostname.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |