mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix issues found by Coverity.
tickets 1166, 1167, 1168, 1169
This commit is contained in:
committed by
Rob Crittenden
parent
d3f74d2b7c
commit
16d1db4996
@@ -139,6 +139,10 @@ callRPC(xmlrpc_env * const envP,
|
||||
XMLRPC_ASSERT(xmlrpc_value_type(paramArrayP) == XMLRPC_TYPE_ARRAY);
|
||||
|
||||
curlXportParmsP = malloc(sizeof(*curlXportParmsP));
|
||||
if (curlXportParmsP == NULL) {
|
||||
xmlrpc_env_set_fault(envP, XMLRPC_INTERNAL_ERROR, _("Out of memory!"));
|
||||
return;
|
||||
}
|
||||
memset(curlXportParmsP, 0, sizeof(*curlXportParmsP));
|
||||
|
||||
/* Have curl do SSL certificate validation */
|
||||
@@ -930,7 +934,7 @@ join(const char *server, const char *hostname, const char *bindpw, const char *k
|
||||
rval = 5;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
||||
krberr = krb5_cc_get_principal(krbctx, ccache, &uprinc);
|
||||
if (krberr) {
|
||||
fprintf(stderr, _("Unable to join host: Kerberos User Principal "
|
||||
|
||||
Reference in New Issue
Block a user