~cyphermox/ubuntu/natty/ofono/release-0.41

« back to all changes in this revision

Viewing changes to gatchat/ppp_cp.c

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2011-02-11 02:17:20 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: mathieu-tl@ubuntu.com-20110211021720-cvxc3erw1keomunj
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
        guint16 packet_length = bufferlen + sizeof(*packet);
206
206
 
207
207
        ppp_packet = ppp_packet_new(packet_length, data->driver->proto);
208
 
        if (!ppp_packet)
 
208
        if (ppp_packet == NULL)
209
209
                return NULL;
210
210
 
211
211
        /* advance past protocol to add CP header information */
1002
1002
        struct pppcp_data *data;
1003
1003
 
1004
1004
        data = g_try_malloc0(sizeof(struct pppcp_data));
1005
 
        if (!data)
 
1005
        if (data == NULL)
1006
1006
                return NULL;
1007
1007
 
1008
1008
        if (dormant)