Mercurial > hg > freeDiameter
changeset 1306:0d15dad33f0b
Fix logic error when calling fd_msg_source_get().
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Mon, 29 Jun 2015 09:37:35 +0200 |
parents | 0aeb09ef20f1 |
children | 7a2ab0087788 |
files | extensions/dbg_msg_dumps/dbg_msg_dumps.c libfdcore/hooks.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/dbg_msg_dumps/dbg_msg_dumps.c Tue Jun 16 21:24:20 2015 +0800 +++ b/extensions/dbg_msg_dumps/dbg_msg_dumps.c Mon Jun 29 09:37:35 2015 +0200 @@ -92,7 +92,7 @@ case HOOK_MESSAGE_PARSING_ERROR: if (msg) { DiamId_t id = NULL; - if (!fd_msg_source_get( msg, &id, NULL )) + if (fd_msg_source_get( msg, &id, NULL )) id = (DiamId_t)"<error getting source>"; if (!id) id = (DiamId_t)"<local>"; @@ -182,7 +182,7 @@ case HOOK_MESSAGE_PARSING_ERROR: if (msg) { DiamId_t id = NULL; - if (!fd_msg_source_get( msg, &id, NULL )) + if (fd_msg_source_get( msg, &id, NULL )) id = (DiamId_t)"<error getting source>"; if (!id) id = (DiamId_t)"<local>"; @@ -261,7 +261,7 @@ case HOOK_MESSAGE_PARSING_ERROR: if (msg) { DiamId_t id = NULL; - if (!fd_msg_source_get( msg, &id, NULL )) + if (fd_msg_source_get( msg, &id, NULL )) id = (DiamId_t)"<error getting source>"; if (!id) id = (DiamId_t)"<local>";
--- a/libfdcore/hooks.c Tue Jun 16 21:24:20 2015 +0800 +++ b/libfdcore/hooks.c Mon Jun 29 09:37:35 2015 +0200 @@ -359,7 +359,7 @@ case HOOK_MESSAGE_PARSING_ERROR: { if (msg) { DiamId_t id = NULL; - if (!fd_msg_source_get( msg, &id, NULL )) + if (fd_msg_source_get( msg, &id, NULL )) id = (DiamId_t)"<error getting source>"; if (!id)