break;
}
section = cm_strdup(arg);
+ rbs_write(sock, "SUCCESS\n", 8);
} else if(strcmp(cmd, "USER") == 0 && arg != NULL) {
if(section == NULL || user != NULL) {
rbs_write(sock, "FAIL\n", 5);
break;
}
user = cm_strdup(arg);
+ rbs_write(sock, "SUCCESS\n", 8);
} else if(strcmp(cmd, "PASS") == 0 && arg != NULL) {
if(user == NULL || pass != NULL) {
rbs_write(sock, "FAIL\n", 5);
break;
}
} else {
+ rbs_write(sock, "FAIL\n", 5);
free(line);
break;
}