mirror of
https://github.com/clearlinux/linux-steam-integration.git
synced 2026-08-25 01:06:44 +00:00
redirect: Avoid use of uninitialised LsiRedirectOperation
While admittedly there is no case of us using any invalid LsiRedirectOperation, there exists the future possibility for invalid inserts into the op table when we encounter an unhandled op type. Knock it on the head and bail early, as appropriate. Signed-off-by: Ikey Doherty <ikey.doherty@intel.com>
This commit is contained in:
@@ -64,7 +64,7 @@ void lsi_redirect_profile_insert_rule(LsiRedirectProfile *self, LsiRedirect *red
|
||||
default:
|
||||
lsi_log_error("Attempted insert of unknown rule into '%s'", self->name);
|
||||
lsi_redirect_free(redirect);
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Set head or prepend the rule */
|
||||
|
||||
Reference in New Issue
Block a user