]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linphone/linphone-hh-0.12.2.hh1/segfault.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linphone / linphone-hh-0.12.2.hh1 / segfault.patch
1 --- linphone-0.12.2.hh1/coreapi/misc.c~ 2004-05-14 15:41:04.000000000 +0100
2 +++ linphone-0.12.2.hh1/coreapi/misc.c  2005-01-05 20:04:49.000000000 +0000
3 @@ -197,6 +197,8 @@
4  {
5         int len;
6         char *prim_contact;
7 +       if (lc->sip_conf.username == NULL)
8 +         abort ();
9  #ifdef LINPHONE_DEPRECATED
10  #ifdef INET6
11         len=32+strlen(lc->sip_conf.username) + 2;
12 --- linphone-0.12.2.hh1/coreapi/linphonecore.c~ 2004-05-14 20:40:19.000000000 +0100
13 +++ linphone-0.12.2.hh1/coreapi/linphonecore.c  2005-01-05 20:04:12.000000000 +0000
14 @@ -454,8 +454,8 @@
15         if (def){
16                 port=5060;
17         }
18 -       linphone_core_set_sip_port(lc,port);
19         linphone_core_set_primary_contact(lc,g_strdup_printf("sip:%s@%s",username,hostname));
20 +       linphone_core_set_sip_port(lc,port);
21         registrar_config_read(lc);
22  }
23