Do not call ses_softc_cleanup() in case of configuration read failure.
Just free inclomplete daemon cache instead to let it retry next time. Premature ses_softc_cleanup() caused NULL dereference when freed softc was accessed later.
This commit is contained in:
parent
26fd7fb588
commit
ce83f9282b
@ -1473,7 +1473,7 @@ ses_process_config(enc_softc_t *enc, struct enc_fsm_state *state,
|
||||
|
||||
out:
|
||||
if (err)
|
||||
ses_softc_cleanup(enc);
|
||||
ses_cache_free(enc, enc_cache);
|
||||
else {
|
||||
enc_update_request(enc, SES_UPDATE_GETSTATUS);
|
||||
enc_update_request(enc, SES_UPDATE_GETELMDESCS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user