gw/wap-appl.c

"Nikos Balkanas" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <003701c9af07$a2b87800$02b2a8c0@tardis>
Another sweet one. This one would lead to infinite loops, but I guess it is not used. Nevertheless pitty to have it like that. Please vote and decide. It is a PPG one.

BR,
Nikos
wap-appl.diff (application/octet-stream, 785 B)
Index: gw/wap-appl.c
===================================================================
RCS file: /home/cvs/gateway/gw/wap-appl.c,v
retrieving revision 1.124
diff -a -u -r1.124 wap-appl.c
--- gw/wap-appl.c	12 Jan 2009 16:46:57 -0000	1.124
+++ gw/wap-appl.c	27 Mar 2009 18:08:06 -0000
@@ -1463,7 +1463,7 @@
                                       List **application_headers)
 {
     List *inh;
-    int i;
+    int i, len;
     Octstr *appid_name, *coded_octstr;
     char *appid_value, *coded_value;
 
@@ -1482,7 +1482,8 @@
     coded_value = NULL;
     appid_value = NULL;
 
-    while (gwlist_len(inh) > 0) {
+	 len = gwlist_len(inh);
+    while (i < len) {
         http_header_get(inh, i, &appid_name, &coded_octstr);
 
         /* Greatest value reserved by WINA is 0xFF00 0000*/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.