Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void
- wsman_set_subscribe_options(....)
- {
- ...
- if(options->delivery_certificatethumbprint ||
- options->delivery_password ||
- options->delivery_password) {
- ...
- }
- The password is checked twice, while the options->delivery_username variable is not checked.
- This suspicious code was found in amtsdk project by PVS-Studio static code analyzer.
- Warning message is:
- V501 There are identical sub-expressions 'options->delivery_password' to the left and to the right of the '||' operator. OpenWsmanLib wsman-client.c 631
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment