[SSSD] [PATCH] Fix allocation check in the AD provider
Sumit Bose
sbose at redhat.com
Tue Jun 11 07:11:58 UTC 2013
On Mon, Jun 10, 2013 at 09:30:43PM +0200, Jakub Hrozek wrote:
> Another Coverity issue.
> From b01b9bc392cd21e72cdb04fa3893091fcac0f8e0 Mon Sep 17 00:00:00 2001
> From: Jakub Hrozek <jhrozek at redhat.com>
> Date: Mon, 10 Jun 2013 21:29:25 +0200
> Subject: [PATCH] Fix allocation check in the AD provider
>
> https://fedorahosted.org/sssd/ticket/1976
> ---
> src/providers/ad/ad_init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c
> index 09ba384be6d22ac57f8ac82a4443dc432b41d463..f3c1609dedb6d1ad650b598da53546dce6cf6345 100644
> --- a/src/providers/ad/ad_init.c
> +++ b/src/providers/ad/ad_init.c
> @@ -143,7 +143,7 @@ sssm_ad_id_init(struct be_ctx *bectx,
> ad_ctx->ldap_ctx = sdap_ctx->conn;
>
> ad_ctx->gc_ctx = sdap_id_ctx_conn_add(sdap_ctx, ad_options->service->gc);
> - if (sdap_ctx == NULL) {
> + if (sdap_ctx->gc_ctx == NULL) {
I guess you meant ad_ctx->gc_ctx == NULL ?
bye,
Sumit
> return ENOMEM;
> }
>
> --
> 1.8.2.1
>
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
More information about the sssd-devel
mailing list