From 859511db14feae071cc1e6e1889ae39bfd276faa Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 17 Feb 2015 16:40:28 -0800 Subject: Make UAT record update callbacks return a success/failure indication. Have them return TRUE on success and FALSE on failure. Check the return value rather than whether the error string pointer is null or not. Change-Id: I800a03bcd70a6bbb7b217cf7c4800e9cdcf2189c Reviewed-on: https://code.wireshark.org/review/7222 Reviewed-by: Guy Harris --- epan/dissectors/packet-pdcp-lte.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-pdcp-lte.c') diff --git a/epan/dissectors/packet-pdcp-lte.c b/epan/dissectors/packet-pdcp-lte.c index c6f15d1988..162011bce2 100644 --- a/epan/dissectors/packet-pdcp-lte.c +++ b/epan/dissectors/packet-pdcp-lte.c @@ -248,7 +248,7 @@ static void update_key_from_string(const char *stringKey, guint8 *binaryKey, gbo } /* Update by checking whether the 3 key strings are valid or not, and storing result */ -static void uat_ue_keys_record_update_cb(void* record, char** error _U_) { +static gboolean uat_ue_keys_record_update_cb(void* record, char** error _U_) { uat_ue_keys_record_t* rec = (uat_ue_keys_record_t *)record; /* Check and convert RRC key */ @@ -259,6 +259,8 @@ static void uat_ue_keys_record_update_cb(void* record, char** error _U_) { /* Check and convert Integrity key */ update_key_from_string(rec->rrcIntegrityKeyString, rec->rrcIntegrityBinaryKey, &rec->rrcIntegrityKeyOK); + + return TRUE; } /* Free heap parts of record */ -- cgit v1.2.3