[libsoup/wip/tpopela/negotiate] soup-auth-negotiate: Don't hard code the spnego_OID size



commit 42f60025899c36c13abdebc360c6ad7cc68bdc68
Author: Tomas Popela <tpopela redhat com>
Date:   Sat Feb 6 16:43:53 2016 +0100

    soup-auth-negotiate: Don't hard code the spnego_OID size

 libsoup/soup-auth-negotiate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-auth-negotiate.c b/libsoup/soup-auth-negotiate.c
index 62c916f..83e438c 100644
--- a/libsoup/soup-auth-negotiate.c
+++ b/libsoup/soup-auth-negotiate.c
@@ -63,7 +63,7 @@ static int soup_gss_client_step (SoupNegotiateConnectionState *conn,
                                 const char *host, GError **err);
 
 static const char spnego_OID[] = "\x2b\x06\x01\x05\x05\x02";
-static const gss_OID_desc gss_mech_spnego = { 6, (void *) &spnego_OID };
+static const gss_OID_desc gss_mech_spnego = { sizeof (spnego_OID), (void *) &spnego_OID };
 
 static GSList *trusted_uris;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]