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
2cba1ccd0e
commit
262b5c50db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238739
@ -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…
Reference in New Issue
Block a user