From: eeb Date: Mon, 21 Mar 2005 18:07:54 +0000 (+0000) Subject: * Added check that network parses OK in llmount.c X-Git-Tag: v1_8_0_110~486^7~123 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c9aa9cbd947f960766fc63d2859ab52c48122213;p=fs%2Flustre-release.git * Added check that network parses OK in llmount.c --- diff --git a/lustre/utils/llmount.c b/lustre/utils/llmount.c index 2195ceb..65ace13 100644 --- a/lustre/utils/llmount.c +++ b/lustre/utils/llmount.c @@ -287,6 +287,11 @@ int parse_options(char *options, struct lustre_mount_data *lmd, int *flagp) *opteq = '\0'; if (!strcmp(opt, "nettype")) { lmd->lmd_nal = ptl_name2nal(opteq + 1); + if (lmd->lmd_nal < 0) { + fprintf(stderr, "%s: can't parse NET " + "%s\n", progname, opteq + 1); + return (1); + } } else if(!strcmp(opt, "cluster_id")) { if (ptl_parse_nid(&cluster_id, opteq+1) != 0) { fprintf(stderr, "%s: can't parse NID "