diff options
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? */ } |