summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_auth.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-03-29 18:13:01 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-03-29 18:13:01 -0700
commitcb26fc4a030d6efcaa3f4d4bc86f61d7788a6e03 (patch)
tree4d727c7b1e1935abfb9624e172afe4bf69b1a587 /gatchat/ppp_auth.c
parent1889070314936179de6e77e4dc08a1e9ed1eb8c3 (diff)
downloadofono-cb26fc4a030d6efcaa3f4d4bc86f61d7788a6e03.tar.bz2
Fix use of g_checksum_get_digest() inout argument
Diffstat (limited to 'gatchat/ppp_auth.c')
-rw-r--r--gatchat/ppp_auth.c4
1 files changed, 2 insertions, 2 deletions
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? */
}