diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-06 21:01:51 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-06 22:49:47 -0500 |
commit | 5e67ee2ff548508b91f793cee860706799f3b997 (patch) | |
tree | ca305623e41293d721b18d5fbbd0a4fcf8c73091 /gatchat/ppp_cp.c | |
parent | e0c8704705fa6a4fba8c3fd29361b0fab27a8ba1 (diff) | |
download | ofono-5e67ee2ff548508b91f793cee860706799f3b997.tar.bz2 |
ppp: Remove OPTION_ERR, treat errors as reject
Diffstat (limited to 'gatchat/ppp_cp.c')
-rw-r--r-- | gatchat/ppp_cp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gatchat/ppp_cp.c b/gatchat/ppp_cp.c index a45f8678..d062e5a1 100644 --- a/gatchat/ppp_cp.c +++ b/gatchat/ppp_cp.c @@ -892,7 +892,7 @@ static guint8 pppcp_process_configure_request(struct pppcp_data *data, if (action->option_scan) rval = action->option_scan(data, option); else - rval = OPTION_ERR; + rval = OPTION_REJECT; switch (rval) { case OPTION_ACCEPT: @@ -908,9 +908,6 @@ static guint8 pppcp_process_configure_request(struct pppcp_data *data, g_list_append(data->unacceptable_options, option); break; - case OPTION_ERR: - g_printerr("unhandled option type %d\n", option->type); - g_free(option); } } @@ -1036,7 +1033,7 @@ static guint8 pppcp_process_configure_nak(struct pppcp_data *data, if (action->option_scan) rval = action->option_scan(data, naked_option); else - rval = OPTION_ERR; + rval = OPTION_REJECT; if (rval == OPTION_ACCEPT) { /* |