From 46c869738caece9d049d61da4aa83f9bab2b3de2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 5 Jul 2013 15:37:09 +0200 Subject: [PATCH] Do not process DataBoxCreditInfo response on server error --- src/isds.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/isds.c b/src/isds.c index 92ac73f..18c2e0d 100644 --- a/src/isds.c +++ b/src/isds.c @@ -7648,10 +7648,8 @@ isds_error isds_get_commercial_credit(struct isds_ctx *context, err = send_destroy_request_check_response(context, SERVICE_DB_SEARCH, BAD_CAST "DataBoxCreditInfo", &request, &response, NULL, &map); - if (!err) { - isds_log(ILF_ISDS, ILL_DEBUG, - _("DataBoxCreditInfo request processed by server successfully.\n")); - } + if (err) goto leave; + /* Extract data */ /* Set context to the root */ @@ -7721,6 +7719,10 @@ isds_error isds_get_commercial_credit(struct isds_ctx *context, } leave: + if (!err) { + isds_log(ILF_ISDS, ILL_DEBUG, + _("DataBoxCreditInfo request processed by server successfully.\n")); + } if (err) { isds_list_free(history); zfree(*email) -- 2.11.4.GIT