Project

General

Profile

Bug #11342

gss: NULL pointer errors

Added by Toomas Soome 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with NULL pointer:

    gssd_clnt_stubs.c: In function 'kgss_acquire_cred_wrapped':
    gssd_clnt_stubs.c:165:24: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        *output_cred_handle = NULL;
                            ^
    gssd_clnt_stubs.c: In function 'kgss_release_cred_wrapped':
    gssd_clnt_stubs.c:512:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        *cred_handle = NULL;
                     ^
    gssd_clnt_stubs.c:519:16: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       *cred_handle = NULL;
                    ^
    gssd_clnt_stubs.c: In function 'kgss_delete_sec_context_wrapped':
    gssd_clnt_stubs.c:1183:20: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        *context_handle = NULL;
                        ^
    gssd_clnt_stubs.c:1196:19: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       *context_handle = NULL;
                       ^
    gssd_clnt_stubs.c: In function 'kgss_export_sec_context_wrapped':
    gssd_clnt_stubs.c:2323:20: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        *context_handle = NULL;
                        ^
    gssd_clnt_stubs.c:2336:19: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       *context_handle = NULL;
                       ^
    gssdtest.c: In function '_gssd_name_to_unix_cred':
    gssdtest.c:1933:43: error: comparison between pointer and integer [-Werror]
      if (mechType == NULL || mechType->length == NULL) {
                                               ^~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 3 months ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 0ab8aa7074d0531c1e2453adcf08e519888b024d

commit  0ab8aa7074d0531c1e2453adcf08e519888b024d
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-12T05:54:08.000Z

    11342 gss: NULL pointer errors
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF