diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2013-07-18 09:08:46 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-07-18 09:08:46 -0700 |
commit | 8ab6df2e2a4df8eb2c6bcd3325c8ac7a5b01c63e (patch) | |
tree | 88119027f36ea7cab52f7e0a7cbb888430a20266 | |
parent | 5ff04590386a08712d83c4f8add6d78870fe3bce (diff) | |
parent | 08ff0e408976d541dae0fc36527c15195cc86cda (diff) | |
download | netd-8ab6df2e2a4df8eb2c6bcd3325c8ac7a5b01c63e.tar.gz |
am 08ff0e40: Merge "Fix memset call"
* commit '08ff0e408976d541dae0fc36527c15195cc86cda':
Fix memset call
-rw-r--r-- | CommandListener.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CommandListener.cpp b/CommandListener.cpp index e8876b50..3bf75766 100644 --- a/CommandListener.cpp +++ b/CommandListener.cpp @@ -680,8 +680,8 @@ int CommandListener::PppdCmd::runCommand(SocketClient *cli, if (!strcmp(argv[1], "attach")) { struct in_addr l, r, dns1, dns2; - memset(&dns1, sizeof(struct in_addr), 0); - memset(&dns2, sizeof(struct in_addr), 0); + memset(&dns1, 0, sizeof(struct in_addr)); + memset(&dns2, 0, sizeof(struct in_addr)); if (!inet_aton(argv[3], &l)) { cli->sendMsg(ResponseCode::CommandParameterError, "Invalid local address", false); |