check the right variable for mallocation failure, cid#9

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24139 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-12-11 05:06:24 +00:00
parent e83545e8f0
commit f317fa98cf

View File

@@ -1766,7 +1766,7 @@ _krb5_parse_moduli_line(krb5_context context,
goto out;
}
m1->name = strdup(p1);
if (p1 == NULL) {
if (m1->name == NULL) {
ret = ENOMEM;
krb5_set_error_message(context, ret, N_("malloc: out of memeory", ""));
goto out;