mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
fix-maxmtu-command-line-20081018
LICENSE MIT fix the variable used for maxmtu command line processing
This commit is contained in:
parent
f5455f7498
commit
1bdea5e470
@ -825,12 +825,12 @@ main(int argc, char **argv, char **envp)
|
||||
else if (strcmp(argv[code], "-allow-dotted-principals") == 0) {
|
||||
rxkadDisableDotCheck = 1;
|
||||
}
|
||||
else if (!strcmp(argv[i], "-rxmaxmtu")) {
|
||||
if ((i + 1) >= argc) {
|
||||
else if (!strcmp(argv[code], "-rxmaxmtu")) {
|
||||
if ((code + 1) >= argc) {
|
||||
fprintf(stderr, "missing argument for -rxmaxmtu\n");
|
||||
exit(1);
|
||||
}
|
||||
rxMaxMTU = atoi(argv[++i]);
|
||||
rxMaxMTU = atoi(argv[++code]);
|
||||
if ((rxMaxMTU < RX_MIN_PACKET_SIZE) ||
|
||||
(rxMaxMTU > RX_MAX_PACKET_DATA_SIZE)) {
|
||||
printf("rxMaxMTU %d invalid; must be between %d-%d\n",
|
||||
|
@ -198,7 +198,7 @@ main(argc, argv)
|
||||
fprintf(stderr, "missing argument for -rxmaxmtu\n");
|
||||
return -1;
|
||||
}
|
||||
rxMaxMTU = atoi(argv[++i]);
|
||||
rxMaxMTU = atoi(argv[++index]);
|
||||
if ((rxMaxMTU < RX_MIN_PACKET_SIZE) ||
|
||||
(rxMaxMTU > RX_MAX_PACKET_DATA_SIZE)) {
|
||||
printf("rxMaxMTU %d invalid; must be between %d-%d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user