--- embedaddon/dhcp/dst/dst_api.c 2012/02/21 22:30:18 1.1 +++ embedaddon/dhcp/dst/dst_api.c 2012/10/09 09:06:54 1.1.1.1 @@ -1,10 +1,11 @@ #ifndef LINT -static const char rcsid[] = "$Header: /usr/local/www/users/anoncvs/cvs/embedaddon/dhcp/dst/dst_api.c,v 1.1 2012/02/21 22:30:18 misho Exp $"; +static const char rcsid[] = "$Header: /usr/local/www/users/anoncvs/cvs/embedaddon/dhcp/dst/dst_api.c,v 1.1.1.1 2012/10/09 09:06:54 misho Exp $"; #endif /* * Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc. * Portions Copyright (c) 2007,2009 by Internet Systems Consortium, Inc. ("ISC") + * Portions Copyright (c) 2012 by Internet Systems Consortium, Inc. ("ISC") * * Permission to use, copy modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -341,7 +342,7 @@ dst_read_key(const char *in_keyname, const unsigned in in_alg)); return (NULL); } - if ((type && (DST_PUBLIC | DST_PRIVATE)) == 0) + if ((type & (DST_PUBLIC | DST_PRIVATE)) == 0) return (NULL); if (in_keyname == NULL) { EREPORT(("dst_read_private_key(): Null key name passed in\n"));