[PR #28] resolve a possible null pointer derefence found by cppcheck #44

Open
opened 2026-02-25 22:30:51 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/evgeny-gridasov/openvpn-otp/pull/28

State: open
Merged: No


[src/otp.c:366] -> [src/otp.c:357]: (warning) Either the condition 'if(vpn_username&&!strcmp(vpn_username,user_entry.name)&&vpn_secret&&password&&!strcmp(vpn_secret,password))' is redundant or there is possible null pointer dereference: vpn_username.

**Original Pull Request:** https://github.com/evgeny-gridasov/openvpn-otp/pull/28 **State:** open **Merged:** No --- [src/otp.c:366] -> [src/otp.c:357]: (warning) Either the condition 'if(vpn_username&&!strcmp(vpn_username,user_entry.name)&&vpn_secret&&password&&!strcmp(vpn_secret,password))' is redundant or there is possible null pointer dereference: vpn_username.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/openvpn-otp#44
No description provided.