coverity/71508: Fix potential null dereference.

Make sure feature pointer is not null before dereferencing.
This commit is contained in:
Manish Raghavan 2014-08-13 20:16:14 -07:00
parent fde390133e
commit 53231d5e0f

View File

@ -158,8 +158,10 @@ static uint64_t get_provider_for(char *method)
err:
// Ensure we won't try to restart the provider
f->bootstrap_command = NULL;
f->channel_id = 0;
if (f) {
f->bootstrap_command = NULL;
f->channel_id = 0;
}
return 0;
}