Diff between aee36d34995a11571604c883b94edb9443c9ed37 and a6b5edd8dcba4fa673fdeca4c44d6efb3a89872c

Changed Files

File Additions Deletions Status
obexd/plugins/opp.c +5 -2 modified

Full Patch

diff --git a/obexd/plugins/opp.c b/obexd/plugins/opp.c
index 59e0eb0..d531e3c 100644
--- a/obexd/plugins/opp.c
+++ b/obexd/plugins/opp.c
@@ -192,8 +192,11 @@ static void opp_get(obex_t *obex, obex_object_t *obj)
 		goto fail;
 
 	if (g_str_equal(os->type, VCARD_TYPE)) {
-		if (os_prepare_get(os, VCARD_FILE, &size) < 0)
-			goto fail;
+		if (os_prepare_get(os, VCARD_FILE, &size) < 0) {
+			OBEX_ObjectSetRsp(obj, OBEX_RSP_NOT_FOUND,
+					OBEX_RSP_NOT_FOUND);
+			return;
+		}
 	} else
 		goto fail;