libexport.a: fix missing brace in host_ntop() fallback
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- support/export/hostname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
support/export/hostname.c +1 -1
@@ -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; }
Signature · 1 line
2.5.0
Quoted 5 lines · Stefan Hajnoczi
An if statement has been missing a brace since
host_ntop()was added in commit94ce1eb94babb4c587b2826452fb053cba745098("libexport.a: Add helpers to manage DNS lookups").Signed-off-by Stefan Hajnoczi <[email protected]>
Committed...
steved.
Quoted 18 lines
--- support/export/hostname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)support/export/hostname.c +1
-1@@ -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; }