in function check_login :
 
success = (strcmp(octstr_get_cstr(system_id), systemid) == 0 && 
strcmp(octstr_get_cstr(password), passw) == 0 && 
strcmp(octstr_get_cstr(system_type), systemtype));

this never return 1 if all OK . Somebody forget " == 0"  change it to 
 
success = (strcmp(octstr_get_cstr(system_id), systemid) == 0 && 
strcmp(octstr_get_cstr(password), passw) == 0 && 
strcmp(octstr_get_cstr(system_type), systemtype) == 0);


Reply via email to