summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/auth/clikrb5.c2
-rw-r--r--source4/libcli/auth/spnego_parse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/auth/clikrb5.c b/source4/libcli/auth/clikrb5.c
index 2c036cfcf8..cf0c4b6424 100644
--- a/source4/libcli/auth/clikrb5.c
+++ b/source4/libcli/auth/clikrb5.c
@@ -369,7 +369,7 @@ cleanup_princ:
krb5_free_principal(context, server);
if (mem_ctx) {
- talloc_destory(mem_ctx);
+ talloc_destroy(mem_ctx);
}
return retval;
}
diff --git a/source4/libcli/auth/spnego_parse.c b/source4/libcli/auth/spnego_parse.c
index bcc32def16..b239a4ebf0 100644
--- a/source4/libcli/auth/spnego_parse.c
+++ b/source4/libcli/auth/spnego_parse.c
@@ -267,6 +267,7 @@ ssize_t spnego_read_data(DATA_BLOB data, struct spnego_data *token)
{
ASN1_DATA asn1;
ssize_t ret = -1;
+ uint8_t context;
ZERO_STRUCTP(token);
ZERO_STRUCT(asn1);
@@ -277,7 +278,6 @@ ssize_t spnego_read_data(DATA_BLOB data, struct spnego_data *token)
asn1_load(&asn1, data);
- uint8_t context;
if (!asn1_peek_uint8(&asn1, &context)) {
asn1.has_error = True;
} else {