diff options
-rw-r--r-- | sshsig.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -881,8 +881,10 @@ cert_filter_principals(const char *path, u_long linenum, | |||
881 | oprincipals = principals = *principalsp; | 881 | oprincipals = principals = *principalsp; |
882 | *principalsp = NULL; | 882 | *principalsp = NULL; |
883 | 883 | ||
884 | if ((nprincipals = sshbuf_new()) == NULL) | 884 | if ((nprincipals = sshbuf_new()) == NULL) { |
885 | return SSH_ERR_ALLOC_FAIL; | 885 | r = SSH_ERR_ALLOC_FAIL; |
886 | goto out; | ||
887 | } | ||
886 | 888 | ||
887 | while ((cp = strsep(&principals, ",")) != NULL && *cp != '\0') { | 889 | while ((cp = strsep(&principals, ",")) != NULL && *cp != '\0') { |
888 | if (strcspn(cp, "!?*") != strlen(cp)) { | 890 | if (strcspn(cp, "!?*") != strlen(cp)) { |