if (!sql_group) {
radlog_request(L_ERR, 0, request,
"Error creating Sql-Group attribute");
+ sql_grouplist_free(&group_list);
return -1;
}
pairadd(&request->packet->vps, sql_group);
"Error generating query; rejecting user");
/* Remove the grouup we added above */
pairdelete(&request->packet->vps, PW_SQL_GROUP);
+ sql_grouplist_free(&group_list);
return -1;
}
rows = sql_getvpdata(inst, sqlsocket, &check_tmp, querystr);
/* Remove the grouup we added above */
pairdelete(&request->packet->vps, PW_SQL_GROUP);
pairfree(&check_tmp);
+ sql_grouplist_free(&group_list);
return -1;
} else if (rows > 0) {
/*
/* Remove the grouup we added above */
pairdelete(&request->packet->vps, PW_SQL_GROUP);
pairfree(&check_tmp);
+ sql_grouplist_free(&group_list);
return -1;
}
if (sql_getvpdata(inst, sqlsocket, &reply_tmp, querystr) < 0) {
pairdelete(&request->packet->vps, PW_SQL_GROUP);
pairfree(&check_tmp);
pairfree(&reply_tmp);
+ sql_grouplist_free(&group_list);
return -1;
}
*dofallthrough = fallthrough(reply_tmp);
/* Remove the grouup we added above */
pairdelete(&request->packet->vps, PW_SQL_GROUP);
pairfree(&check_tmp);
+ sql_grouplist_free(&group_list);
return -1;
}
if (sql_getvpdata(inst, sqlsocket, &reply_tmp, querystr) < 0) {
pairdelete(&request->packet->vps, PW_SQL_GROUP);
pairfree(&check_tmp);
pairfree(&reply_tmp);
+ sql_grouplist_free(&group_list);
return -1;
}
*dofallthrough = fallthrough(reply_tmp);