Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154497226
D6651.id17122.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
702 B
Referenced Files
None
Subscribers
None
D6651.id17122.diff
View Options
Index: usr.sbin/keyserv/crypt_server.c
===================================================================
--- usr.sbin/keyserv/crypt_server.c
+++ usr.sbin/keyserv/crypt_server.c
@@ -180,12 +180,13 @@
{
char dlpath[MAXPATHLEN];
- if (libpath == NULL) {
- snprintf(dlpath, sizeof(dlpath), "%s/%s", _PATH_USRLIB, LIBCRYPTO);
- } else
+ if (libpath == NULL)
+ snprintf(dlpath, sizeof(dlpath), "%s/%s", _PATH_USRLIB,
+ LIBCRYPTO);
+ else
snprintf(dlpath, sizeof(dlpath), "%s", libpath);
- if (dlpath != NULL && (dlhandle = dlopen(dlpath, 0444)) != NULL)
+ if ((dlhandle = dlopen(dlpath, 0444)) != NULL)
_my_crypt = (int (*)())dlsym(dlhandle, "_des_crypt");
if (_my_crypt == NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 6:29 PM (2 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32373862
Default Alt Text
D6651.id17122.diff (702 B)
Attached To
Mode
D6651: keyserv(1): Wrong comparison in load_des()
Attached
Detach File
Event Timeline
Log In to Comment