[PATCH] wwan: don't assume DNS info is always available

2015-02-17 Thread Aleksander Morgado
Fixes segfault with e.g. Ericsson modems that reply just with IP+gateway, without DNS info. [mm-port-serial-at.c:440] debug_log(): (ttyACM8): -- 'AT*E2IPCFG?CR' [mm-port-serial-at.c:440] debug_log(): (ttyACM8): -- 'CRLF*E2IPCFG: (1,10.191.64.12)(2,10.191.64.10)CRLF' [mm-port-serial-at.c:440]

Re: [PATCH] wwan: don't assume DNS info is always available

2015-02-17 Thread Dan Williams
On Tue, 2015-02-17 at 17:20 +0100, Aleksander Morgado wrote: Fixes segfault with e.g. Ericsson modems that reply just with IP+gateway, without DNS info. Thanks, made a small change (reduced the patch to for (i = 0; dns dns[i]...) and pushed to 0.9.10, 1.0, and git master. Dan