Skip to content

Commit 73cf79e

Browse files
clang scan-build warning fix
1 parent 01dd6ec commit 73cf79e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/wolfsshd/auth.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,10 +1138,9 @@ static int RequestAuthentication(WS_UserAuthData* authData,
11381138
}
11391139

11401140

1141+
#ifdef WOLFSSL_FPKI
11411142
if (ret == WOLFSSH_USERAUTH_SUCCESS &&
11421143
authData->type == WOLFSSH_USERAUTH_PUBLICKEY) {
1143-
1144-
#ifdef WOLFSSL_FPKI
11451144
/* compare user name to UPN in certificate */
11461145
if (authData->sf.publicKey.isCert) {
11471146
DecodedCert* dCert;
@@ -1204,8 +1203,11 @@ static int RequestAuthentication(WS_UserAuthData* authData,
12041203
#endif
12051204
}
12061205
}
1206+
}
12071207
#endif
12081208

1209+
if (ret == WOLFSSH_USERAUTH_SUCCESS &&
1210+
authData->type == WOLFSSH_USERAUTH_PUBLICKEY) {
12091211
/* if this is a certificate and no specific authorized keys file has
12101212
* been set then rely on CA to have verified the cert */
12111213
if (authData->sf.publicKey.isCert &&

0 commit comments

Comments
 (0)