]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
cmd_args.c:
authorFrank Kardel <kardel@ntp.org>
Sat, 18 Aug 2007 09:51:41 +0000 (09:51 +0000)
committerFrank Kardel <kardel@ntp.org>
Sat, 18 Aug 2007 09:51:41 +0000 (09:51 +0000)
  Bug 885: fix comparison

bk: 46c6c12dZfDl9ulSynooBrgbXf6FgA

ntpd/cmd_args.c

index 91f376f7759713ea3aec0e3704ac67055232b901..3ef1dcc860886f7b0366409338d33362d02bd456 100644 (file)
@@ -126,7 +126,7 @@ getCmdOpts(
                        const char* p = *pp++;
 
                        tkey = (int)atol(p);
-                       if (tkey = 0 || tkey > NTP_MAXKEY) {
+                       if (tkey == 0 || tkey > NTP_MAXKEY) {
                                msyslog(LOG_ERR,
                                    "command line trusted key %s is invalid",
                                    p);