In k5_pwqual_load(), if the last vtable initializer fails, return 0
authorGreg Hudson <ghudson@mit.edu>
Sat, 4 Sep 2010 14:50:27 +0000 (14:50 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sat, 4 Sep 2010 14:50:27 +0000 (14:50 +0000)
and not its exit value.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24290 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/srv/pwqual.c

index 0beb627016fbc4a9af114e178455a71278aed470..86aa2d43b5c63b481136d0705333fa1af43b035b 100644 (file)
@@ -83,6 +83,7 @@ k5_pwqual_load(krb5_context context, const char *dict_file,
     }
     list[count] = NULL;
 
+    ret = 0;
     *handles_out = list;
     list = NULL;