summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2013-07-18 16:07:19 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-07-18 16:07:19 +0000
commit08ff0e408976d541dae0fc36527c15195cc86cda (patch)
tree35b9d5a27c7b261899a4fe20ab9ba585083b42bc
parent4ea5bd0540bf3b4b6767815b5c9e41a7146f749c (diff)
parent1c4a77955acdb730d017b15e9a92ca511e6ca106 (diff)
downloadnetd-jb-mr1.1-dev-plus-aosp.tar.gz
Merge "Fix memset call"jb-mr1.1-dev-plus-aosp
-rw-r--r--CommandListener.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CommandListener.cpp b/CommandListener.cpp
index 6f81524c..467a9aa6 100644
--- a/CommandListener.cpp
+++ b/CommandListener.cpp
@@ -785,8 +785,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);