From: Frank Kardel Date: Sat, 18 Aug 2007 09:51:41 +0000 (+0000) Subject: cmd_args.c: X-Git-Tag: NTP_4_2_4P4_RC1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d688440ca4e9982daddacd751b4fd2c4e7b2633;p=thirdparty%2Fntp.git cmd_args.c: Bug 885: fix comparison bk: 46c6c12dZfDl9ulSynooBrgbXf6FgA --- diff --git a/ntpd/cmd_args.c b/ntpd/cmd_args.c index 91f376f77..3ef1dcc86 100644 --- a/ntpd/cmd_args.c +++ b/ntpd/cmd_args.c @@ -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);