summaryrefslogtreecommitdiff
path: root/cleopatre/devkit/plcd
diff options
context:
space:
mode:
authorlefranc2010-03-02 09:45:54 +0000
committerlefranc2010-03-02 09:45:54 +0000
commitfebe4e8d827c1ccf7ba84399bb97964e04f45756 (patch)
treeba6f8dba489aaf8901f04c497a21163fec2aa83b /cleopatre/devkit/plcd
parentfa03c606f82a0e441cac055e5c608ca10c04f606 (diff)
cleo/plcd: check if MME answer is successful before returning
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6800 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cleopatre/devkit/plcd')
-rw-r--r--cleopatre/devkit/plcd/src/hpav.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cleopatre/devkit/plcd/src/hpav.c b/cleopatre/devkit/plcd/src/hpav.c
index d317f91000..5aeaa02656 100644
--- a/cleopatre/devkit/plcd/src/hpav.c
+++ b/cleopatre/devkit/plcd/src/hpav.c
@@ -220,7 +220,8 @@ int hpav_send_single_value (const plcd_ctx_t *plcd_ctx, unsigned int mmtype, con
mme_put (&request_ctx, value, length, &result_len);
}
if((0 <= hpav_send_mme (plcd_ctx, &request_ctx, &confirm_ctx))
- && (MME_SUCCESS == mme_pull (&confirm_ctx, &result, sizeof(result), &result_len)))
+ && (MME_SUCCESS == mme_pull (&confirm_ctx, &result, sizeof(result), &result_len))
+ && (MME_RESULT_SUCCESS == result))
{
return 0;
}