From c9aa9cbd947f960766fc63d2859ab52c48122213 Mon Sep 17 00:00:00 2001 From: eeb Date: Mon, 21 Mar 2005 18:07:54 +0000 Subject: [PATCH] * Added check that network parses OK in llmount.c --- lustre/utils/llmount.c | 5 +++++ 1 file changed, 5 insertions(+) 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 " -- 1.8.3.1