diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-03-29 18:13:01 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-03-29 18:13:01 -0700 |
commit | cb26fc4a030d6efcaa3f4d4bc86f61d7788a6e03 (patch) | |
tree | 4d727c7b1e1935abfb9624e172afe4bf69b1a587 /gatchat/ppp_auth.c | |
parent | 1889070314936179de6e77e4dc08a1e9ed1eb8c3 (diff) | |
download | ofono-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.c | 4 |
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? */ } |