[Issue#] PSDAC-46
[Bug] Failing tests:
* tc01a_security_server_app_give_access
* tc07_check_API_data_share_allow
[Cause] Wrong check of return value.
[Solution] Check proper return value from smack_new_label_from_socket
[Verifcation] Build, run tests.
}
if (smack_check()) {
- if (0 != smack_new_label_from_socket(conn.sock, &providerLabel)) {
+ if (0 > smack_new_label_from_socket(conn.sock, &providerLabel)) {
LogDebug("Error in smack_new_label_from_socket");
retCode = SECURITY_SERVER_API_ERROR_BAD_REQUEST;
goto end;