From 77e9f0997e515b3be9fef1694a0a3d3aff65789a Mon Sep 17 00:00:00 2001 From: Robert Love Date: Fri, 3 Feb 2006 20:18:58 +0000 Subject: [PATCH] 2006-02-03 Robert Love * src/NetworkManagerUtils.c: Even for debugging, we should not log the user's encryption key, so we print the err_msg_cmd not the command, if available. So long as SUPPLICANT_DEBUG is default, this makes sense. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1441 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 7 +++++++ src/NetworkManagerUtils.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e6cc31646e..5f8da4ddb2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-03 Robert Love + + * src/NetworkManagerUtils.c: Even for debugging, we should not log the + user's encryption key, so we print the err_msg_cmd not the command, + if available. So long as SUPPLICANT_DEBUG is default, this makes + sense. + 2006-02-03 Christopher Aillon * initscript/RedHat/NetworkManagerDispatcher.in: diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c index ed9808f175..27ddbf6b7d 100644 --- a/src/NetworkManagerUtils.c +++ b/src/NetworkManagerUtils.c @@ -762,7 +762,7 @@ nm_utils_supplicant_request_with_check (struct wpa_ctrl *ctrl, response = g_malloc (RESPONSE_SIZE); len = RESPONSE_SIZE; #ifdef SUPPLICANT_DEBUG - nm_info ("SUP: sending command '%s'", command); + nm_info ("SUP: sending command '%s'", err_msg_cmd ? err_msg_cmd : command); #endif wpa_ctrl_request (ctrl, command, strlen (command), response, &len, NULL); response[len] = '\0';