fix error condition

This commit is contained in:
Love Hornquist Astrand
2011-04-23 20:03:57 -07:00
parent 3ae4c52cbc
commit b3811999f7

View File

@@ -143,7 +143,7 @@ check_acl (krb5_context context, const char *name)
int ret = 1;
char *slavefile = NULL;
if (asprintf(&slavefile, "%s/slaves", hdb_db_dir(context))
if (asprintf(&slavefile, "%s/slaves", hdb_db_dir(context)) == -1
|| slavefile == NULL)
errx(1, "out of memory");