Re: [BUG] wsp_headers.c, header's handling in Connect PDU
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Wapme Systems AG |
| Message-ID | <[email protected]> |
Ok, ow about trying this patch and access with the device again to see what happens. Stipe mailto:[email protected] ------------------------------------------------------------------- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:[email protected] http://www.wapme-systems.de/ ------------------------------------------------------------------- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.2 (Cygwin) mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -----END PGP PUBLIC KEY BLOCK-----
wsp.patch
(application/x-unknown-content-type-patch_auto_file, 1.2 KB)
Index: wap/wsp_headers.c
===================================================================
RCS file: /home/cvs/gateway/wap/wsp_headers.c,v
retrieving revision 1.15
diff -u -r1.15 wsp_headers.c
--- wap/wsp_headers.c 9 Dec 2003 13:53:43 -0000 1.15
+++ wap/wsp_headers.c 11 Dec 2003 14:26:57 -0000
@@ -526,8 +526,8 @@
*/
ret = wsp_secondary_field_value(context, &val);
- if (parse_error(context) || ret == WSP_FIELD_VALUE_NONE) {
- warning(0, "bad media-range or media-type");
+ if (parse_error(context)) {
+ warning(0, "Bad media-range or media-type.");
return NULL;
}
@@ -540,9 +540,12 @@
} else if (ret == WSP_FIELD_VALUE_NUL_STRING) {
decoded = parse_get_nul_string(context);
if (!decoded) {
- warning(0, "Format error in content type");
+ warning(0, "Format error in content type.");
return NULL;
}
+ } else if (ret == WSP_FIELD_VALUE_NONE) {
+ decoded = octstr_create("");
+ warning(0, "Empty content-type field-value in WSP header.");
} else {
panic(0, "Unknown secondary field value type %d.", ret);
}