diff --git a/openssh-7.6p1-pkcs11-uri.patch b/openssh-7.6p1-pkcs11-uri.patch index 6eca876..6fd463e 100644 --- a/openssh-7.6p1-pkcs11-uri.patch +++ b/openssh-7.6p1-pkcs11-uri.patch @@ -3314,7 +3314,7 @@ new file mode 100644 index 00000000..da15c164 --- /dev/null +++ b/ssh-pkcs11-uri.c -@@ -0,0 +1,401 @@ +@@ -0,0 +1,395 @@ +/* + * Copyright (c) 2017 Red Hat + * @@ -3619,11 +3619,6 @@ index 00000000..da15c164 + if (tok == NULL) + break; + opcode = parse_token(tok); -+ if (opcode == pBadOption) { -+ free(p); -+ verbose("Unknown key in PKCS#11 URI: %s", tok); -+ return -1; -+ } + + char *arg = tok + strlen(keywords[opcode].name) + 1; /* separator "=" */ + switch (opcode) { @@ -3678,7 +3673,6 @@ index 00000000..da15c164 + /* Unrecognized attribute in the URI path SHOULD be error */ + verbose("%s: Unknown part of path in PKCS#11 URI: %s", + __func__, tok); -+ rv = -1; + } + } +