gbDryRun = 1;
break;
default:
- if( !isdigit(argv[i][0]) ) {
- fprintf(stderr, "%s: Unknown switch '%s'\n", argv[0], argv[i]);
- ShowUsage();
- return RV_ARGUMENTS;
- }
+// if( !isdigit(argv[i][0]) ) {
+// fprintf(stderr, "%s: Unknown switch '%s'\n", argv[0], argv[i]);
+// ShowUsage();
+// return RV_ARGUMENTS;
+// }
if( text_argc + 1 == MAX_TXT_ARGS )
{
fprintf(stderr, "ERROR: Too many arguments\n");
}
else {
len = recv(Socket, buf+bufPos, BUFSIZ-1-bufPos, 0);
+ if( len < 0 ) {
+ free(ret);
+ return strdup("499 Client Connection Error\n");
+ }
buf[bufPos+len] = '\0';
}