memset(&ied, 0, sizeof(ied));
ast_mutex_lock(&provlock);
- if (!(ast_db_get("iax/provisioning/cache", template, tmp, sizeof(tmp)))) {
- ast_log(LOG_ERROR, "ast_db_get failed to retrieve iax/provisioning/cache\n");
- ast_mutex_unlock(&provlock);
- return -1;
+ if (ast_db_get("iax/provisioning/cache", template, tmp, sizeof(tmp))) {
+ ast_log(LOG_ERROR, "ast_db_get failed to retrieve iax/provisioning/cache/%s\n", template);
}
if (sscanf(tmp, "v%30x", version) != 1) {
if (strcmp(tmp, "u")) {