Ticket #70218: patch-gss_display_status.diff

File patch-gss_display_status.diff, 519 bytes (added by RJVB (René Bertin), 5 months ago)
  • lib/error.c

    diff --git lib/error.c.orig lib/error.c
    index 78335b9..7f842de 100644
    old new gss_display_status (OM_uint32 * minor_status, 
    333333        _gss_mech_api_t mech;
    334334
    335335        mech = _gss_find_mech (mech_type);
    336         return mech->display_status (minor_status, status_value, status_type,
     336        return mech ? mech->display_status (minor_status, status_value, status_type,
    337337                                     mech_type, message_context,
    338                                      status_string);
     338                                     status_string) : GSS_S_BAD_MECH;
    339339      }
    340340      break;
    341341