You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting authentication, the function takes a pointer to username / password, and just holds a copy of the pointer in the class but not a copy of the data.
So when the pointer is dereferenced when the caller method finishes, the authenticate method of the HTTP GET handler does not work anymore.
I would suggest doing a safe copy of the data since it is used at another location and not only within the caller method context.
mathieucarbou
changed the title
[BUG] Pointer dereferencing issue with authentication
[BUG] Pointer dereferencing issue with authentication (oss & pro)
Nov 25, 2023
When setting authentication, the function takes a pointer to username / password, and just holds a copy of the pointer in the class but not a copy of the data.
So when the pointer is dereferenced when the caller method finishes, the authenticate method of the HTTP GET handler does not work anymore.
I would suggest doing a safe copy of the data since it is used at another location and not only within the caller method context.
Otherwise, use
String
.I've fixed it using String:
header:
cpp
The text was updated successfully, but these errors were encountered: