diff options
Diffstat (limited to 'openssh-model.lua')
-rw-r--r-- | openssh-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssh-model.lua b/openssh-model.lua index 3b8718b..26bc816 100644 --- a/openssh-model.lua +++ b/openssh-model.lua @@ -193,11 +193,11 @@ end local function parseauthline(line) local retval = {} local words = format.string_to_table(line, "%s") - if string.match(words[1], "^ssh%-%ws%w$") then + if words[1] and string.match(words[1], "^ssh%-%ws%w$") then retval.perm = "" retval.key = words[2] retval.id = table.concat(words, " ", 3) - elseif string.match(words[2], "^ssh%-%ws%w$") then + elseif words[2] and string.match(words[2], "^ssh%-%ws%w$") then retval.perm = words[1] retval.key = words[3] retval.id = table.concat(words, " ", 4) |