Skip to content

[Bug] Internal/oauth - bad nil check #571

@wooffie

Description

@wooffie

Which version of MSAL Go are you using?
Note that to get help, you need to run the latest version.

v1.4.2

Where is the issue?

  • Public client
    • Device code flow
    • Username/Password (ROPC grant)
    • Authorization code flow
  • Confidential client
    • Authorization code flow
    • Client credentials:
      • client secret
      • client certificate
  • Token cache serialization
    • In-memory cache
  • Other (please describe)
    • oauth/wstrust

Is this a new or an existing app?
Just have some code.

Check this part of code -

Expected behavior
After check nil we can not write in pointer

Actual behavior
After check nil we can write in pointer

Possible solution
Change checks, I can prepare PR if it is true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions