2006-02-03 Robert Love <rml@novell.com>

* 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
This commit is contained in:
Robert Love
2006-02-03 20:18:58 +00:00
committed by Robert Love
parent 5b90082cd1
commit 77e9f0997e
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2006-02-03 Robert Love <rml@novell.com>
* 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 <caillon@redhat.com> 2006-02-03 Christopher Aillon <caillon@redhat.com>
* initscript/RedHat/NetworkManagerDispatcher.in: * initscript/RedHat/NetworkManagerDispatcher.in:

View File

@@ -762,7 +762,7 @@ nm_utils_supplicant_request_with_check (struct wpa_ctrl *ctrl,
response = g_malloc (RESPONSE_SIZE); response = g_malloc (RESPONSE_SIZE);
len = RESPONSE_SIZE; len = RESPONSE_SIZE;
#ifdef SUPPLICANT_DEBUG #ifdef SUPPLICANT_DEBUG
nm_info ("SUP: sending command '%s'", command); nm_info ("SUP: sending command '%s'", err_msg_cmd ? err_msg_cmd : command);
#endif #endif
wpa_ctrl_request (ctrl, command, strlen (command), response, &len, NULL); wpa_ctrl_request (ctrl, command, strlen (command), response, &len, NULL);
response[len] = '\0'; response[len] = '\0';