[sr-dev] git:master:59dde423: speeddial: add missing break when handling blob db result type

Daniel-Constantin Mierla miconda at gmail.com
Sat Jul 15 09:33:34 CEST 2017


Module: kamailio
Branch: master
Commit: 59dde423db52e7a8c69072685c99cd6a11440017
URL: https://github.com/kamailio/kamailio/commit/59dde423db52e7a8c69072685c99cd6a11440017

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-07-15T09:05:18+02:00

speeddial: add missing break when handling blob db result type

---

Modified: src/modules/speeddial/sdlookup.c

---

Diff:  https://github.com/kamailio/kamailio/commit/59dde423db52e7a8c69072685c99cd6a11440017.diff
Patch: https://github.com/kamailio/kamailio/commit/59dde423db52e7a8c69072685c99cd6a11440017.patch

---

diff --git a/src/modules/speeddial/sdlookup.c b/src/modules/speeddial/sdlookup.c
index 13c7095db8..c4f655efce 100644
--- a/src/modules/speeddial/sdlookup.c
+++ b/src/modules/speeddial/sdlookup.c
@@ -196,6 +196,7 @@ int sd_lookup_owner(sip_msg_t* _msg, str* stable, str* sowner)
 				RES_ROWS(db_res)[0].values[0].val.blob_val.len);
 			user_s.len = RES_ROWS(db_res)[0].values[0].val.blob_val.len;
 			user_s.s[user_s.len] = '\0';
+		break;
 		default:
 			LM_ERR("unknown type of DB new_uri column\n");
 			if (db_res != NULL && db_funcs.free_result(db_handle, db_res) < 0)




More information about the sr-dev mailing list