You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/10/19 11:04:05 UTC

[jira] [Commented] (HAWQ-64) Forward NULL issue for ExtractPrincipalFromTicketCache

    [ https://issues.apache.org/jira/browse/HAWQ-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14963019#comment-14963019 ] 

ASF GitHub Bot commented on HAWQ-64:
------------------------------------

GitHub user linwen opened a pull request:

    https://github.com/apache/incubator-hawq/pull/28

    HAWQ-64. fix NULL pointer error in function ExtractPrincipalFromTicke…

    fix a bug. Please review.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/linwen/incubator-hawq hawq-64

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-hawq/pull/28.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #28
    
----
commit 777932737fcd7bc2fd4e4fce7610ff1983f0ed5a
Author: Wen Lin <wl...@pivotal.io>
Date:   2015-10-19T09:02:55Z

    HAWQ-64. fix NULL pointer error in function ExtractPrincipalFromTicketCache

----


> Forward NULL issue for ExtractPrincipalFromTicketCache
> ------------------------------------------------------
>
>                 Key: HAWQ-64
>                 URL: https://issues.apache.org/jira/browse/HAWQ-64
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: libyarn
>            Reporter: Jiali Yao
>            Assignee: Lin Wen
>
> According to coverity report, below code has FORWARD NULL issue:
> In apache-hawq/src/backend/resourcemanager/resourcebroker
> 	if (!cache) {
>         if (0 != setenv("KRB5CCNAME", cache, 1)) {
>             elog(WARNING, "Cannot set env parameter \"KRB5CCNAME\" when extract principal from cache:%s", cache);
>             return NULL;
>         }
>     }
> If the cache is NULL, it will be error in setenv.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)