Reported by RedHat internal Covscan
Since
cb8a0d9 we no longer stop traversing the list if encryption_flag
or signing_flags are unknown.
Assignment "result = -1;" is always overwritten by
"result = traverse_connections_*()" and is a dead code.
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Feb 2 15:46:52 UTC 2023 on atb-devel-224
break;
default:
encryption = "???";
- result = -1;
break;
}
encryption_degree = CRYPTO_DEGREE_FULL;
break;
default:
signing = "???";
- result = -1;
break;
}
signing_degree = CRYPTO_DEGREE_FULL;