diff options
author | Kristen Carlson Accardi <kristen@linux.intel.com> | 2010-05-10 13:06:37 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-10 16:27:15 -0500 |
commit | 125fc62526114acd373ed090edbd42a01300e2af (patch) | |
tree | 0b45feb0a6a2a05d6ebd1d724f5df073c6c09273 /gatchat/ppp_auth.c | |
parent | f13d5e2badcd2ca277e895990e47bb49e1df81a3 (diff) | |
download | ofono-125fc62526114acd373ed090edbd42a01300e2af.tar.bz2 |
ppp: set address and control field
Before sending to hdlc, set the address and control field.
Fix hardcode of ppp header size.
Diffstat (limited to 'gatchat/ppp_auth.c')
-rw-r--r-- | gatchat/ppp_auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gatchat/ppp_auth.c b/gatchat/ppp_auth.c index 6e55297c..eae5d17a 100644 --- a/gatchat/ppp_auth.c +++ b/gatchat/ppp_auth.c @@ -83,7 +83,7 @@ static void chap_process_challenge(struct ppp_chap *chap, const guint8 *packet) */ digest_len = g_checksum_type_get_length(chap->method); response_length = digest_len + sizeof(*header) + 1; - ppp_packet = g_try_malloc0(response_length + 2); + ppp_packet = g_try_malloc0(response_length + sizeof(struct ppp_header)); if (!ppp_packet) goto challenge_out; |