gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-18


From: Pawel Kot
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-185-g6c55258
Date: Thu, 17 Feb 2011 22:18:16 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  6c55258f2f9dcdeb468055937c79e2137c36ae5c (commit)
      from  73ea988688afd4ca1ca7259bae9ccdc6dce15a46 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=6c55258f2f9dcdeb468055937c79e2137c36ae5c


commit 6c55258f2f9dcdeb468055937c79e2137c36ae5c
Author: Pawel Kot <address@hidden>
Date:   Thu Feb 17 23:17:22 2011 +0100

    Recipient number with gn_sms_send() cannot be empty.

diff --git a/common/gsm-sms.c b/common/gsm-sms.c
index 68a6609..515bba6 100644
--- a/common/gsm-sms.c
+++ b/common/gsm-sms.c
@@ -1602,6 +1602,10 @@ GNOKII_API gn_error gn_sms_send(gn_data *data, struct 
gn_statemachine *state)
        if (!data->sms)
                return GN_ERR_INTERNALERROR;
 
+       if (data->sms->remote.number[0] == 0) {
+               dprintf("Recipient number cannot be NULL.\n");
+               return GN_ERR_WRONGDATAFORMAT;
+       }
 
        dprintf("=====> ENTER gn_sms_send()\n");
        /*

-----------------------------------------------------------------------

Summary of changes:
 common/gsm-sms.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]