From cb26fc4a030d6efcaa3f4d4bc86f61d7788a6e03 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 29 Mar 2010 18:13:01 -0700 Subject: Fix use of g_checksum_get_digest() inout argument --- gatchat/ppp_auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gatchat/ppp_auth.c') diff --git a/gatchat/ppp_auth.c b/gatchat/ppp_auth.c index fe3c501e..3c8d3a76 100644 --- a/gatchat/ppp_auth.c +++ b/gatchat/ppp_auth.c @@ -105,9 +105,9 @@ static void chap_process_challenge(struct auth_data *auth, guint8 *packet) response->code = RESPONSE; response->identifier = header->identifier; response->length = htons(response_length); + g_checksum_get_digest(checksum, response->data + 1, + &digest_len); response->data[0] = digest_len; - g_checksum_get_digest(checksum, &response->data[1], - (gsize *) &response->data[0]); /* leave the name empty? */ } -- cgit v1.2.3