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:
Alexander Motin 2012-07-24 13:08:43 +00:00
parent 2cba1ccd0e
commit 262b5c50db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238739

View File

@ -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);