[libsoup/wip/tpopela/negotiate] soup-auth-negotiate: Don't count the trailing \0 when passing the size of spnego_OID



commit c89e04f970eb0b267efed871a4e259b93573c87e
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Feb 8 15:59:57 2016 +0100

    soup-auth-negotiate: Don't count the trailing \0 when passing the size of spnego_OID

 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 1e8812a..4a27542 100644
--- a/libsoup/soup-auth-negotiate.c
+++ b/libsoup/soup-auth-negotiate.c
@@ -71,7 +71,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 = { sizeof (spnego_OID), (void *) &spnego_OID };
+static const gss_OID_desc gss_mech_spnego = { sizeof (spnego_OID) - 1, (void *) &spnego_OID };
 
 static GSList *trusted_uris;
 


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