From d7b7a0652667d84bca793fdffdb310e33aaa7eba Mon Sep 17 00:00:00 2001 From: Forrest Zhao Date: Thu, 18 Dec 2008 12:18:41 +0800 Subject: [PATCH] obexd: for PBAP Pullvardlisting the name header could be empty --- obexd/src/pbap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/obexd/src/pbap.c b/obexd/src/pbap.c index 3a5b17043..2de5e5059 100644 --- a/obexd/src/pbap.c +++ b/obexd/src/pbap.c @@ -335,7 +335,11 @@ void pbap_get(obex_t *obex, obex_object_t *obj) if (session == NULL) return; - if (session->type == NULL || session->name == NULL) + if (session->type == NULL) + goto fail; + + if (g_str_equal(session->type, VCARDLISTING_TYPE) == FALSE + && session->name == NULL) goto fail; OBEX_ObjectReParseHeaders(obex, obj); -- 2.47.3