From 18c61c4ddbc64ce372238097d5043159ec4f7c8a Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 21 Jul 1995 16:37:31 +0000 Subject: (diskfs_S_file_set_translator): Only validate PASSIVELEN if PASSIVE is set. --- libdiskfs/file-set-trans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdiskfs/file-set-trans.c b/libdiskfs/file-set-trans.c index c699dc52..12e3e3b1 100644 --- a/libdiskfs/file-set-trans.c +++ b/libdiskfs/file-set-trans.c @@ -40,7 +40,7 @@ diskfs_S_file_set_translator (struct protid *cred, if (!(passive_flags & FS_TRANS_SET) && !(active_flags & FS_TRANS_SET)) return 0; - if (passive[passivelen - 1]) + if (passive && passive[passivelen - 1]) return EINVAL; np = cred->po->np; -- cgit v1.2.3