summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-11-03 14:03:35 -0400
committerSimo Sorce <ssorce@redhat.com>2011-11-07 11:13:55 -0500
commit97018212279be4ff70816194b1e6392b61da36dc (patch)
tree2fa3248f489606fda79029dffef824b68939787a
parentad8c53d584e516fc588ec08c2c494fde5a5121c5 (diff)
downloadfreeipa-97018212279be4ff70816194b1e6392b61da36dc.tar.gz
freeipa-97018212279be4ff70816194b1e6392b61da36dc.tar.xz
freeipa-97018212279be4ff70816194b1e6392b61da36dc.zip
Fix CID 11027: Wrong sizeof argument
https://fedorahosted.org/freeipa/ticket/2037
-rw-r--r--daemons/ipa-kdb/ipa_kdb_pwdpolicy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/ipa-kdb/ipa_kdb_pwdpolicy.c b/daemons/ipa-kdb/ipa_kdb_pwdpolicy.c
index d439feb90..46a051330 100644
--- a/daemons/ipa-kdb/ipa_kdb_pwdpolicy.c
+++ b/daemons/ipa-kdb/ipa_kdb_pwdpolicy.c
@@ -85,7 +85,7 @@ krb5_error_code ipadb_get_pwd_policy(krb5_context kcontext, char *name,
goto done;
}
- pentry = calloc(1, sizeof(osa_policy_ent_t));
+ pentry = calloc(1, sizeof(osa_policy_ent_rec));
if (!pentry) {
kerr = ENOMEM;
goto done;