mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-01 20:50:34 +01:00
glib-aux: fix nm_ref_string_equal_str()
Fix comparison with a NULL string. The only current caller is nm-supplicant-interface.c, and this bug causes a missing cleanup of the CurrentBSS property on disconnect. Fixes:ac8c3a7111('glib-aux: improve nm_ref_string_equals_str() to work for non-C-strings') https://bugzilla.redhat.com/show_bug.cgi?id=1983735 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1073 (cherry picked from commitb755539aa6) (cherry picked from commit4685651e76)
This commit is contained in:
parent
39f62e28dd
commit
ab9fb59f1d
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ static inline gboolean
|
|||
nm_ref_string_equal_str(NMRefString *rstr, const char *str)
|
||||
{
|
||||
if (!str)
|
||||
return (!!rstr);
|
||||
return !rstr;
|
||||
|
||||
if (!rstr)
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue