Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152094988
D49645.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D49645.id.diff
View Options
diff --git a/usr.sbin/ctld/uclparse.cc b/usr.sbin/ctld/uclparse.cc
--- a/usr.sbin/ctld/uclparse.cc
+++ b/usr.sbin/ctld/uclparse.cc
@@ -100,14 +100,14 @@
}
mutual_user = ucl_object_find_key(obj, "mutual-user");
- if (!user || user->type != UCL_STRING) {
+ if (!mutual_user || mutual_user->type != UCL_STRING) {
log_warnx("chap-mutual section in auth-group \"%s\" is missing "
"\"mutual-user\" string key", ag_name);
return (false);
}
mutual_secret = ucl_object_find_key(obj, "mutual-secret");
- if (!secret || secret->type != UCL_STRING) {
+ if (!mutual_secret || mutual_secret->type != UCL_STRING) {
log_warnx("chap-mutual section in auth-group \"%s\" is missing "
"\"mutual-secret\" string key", ag_name);
return (false);
@@ -165,14 +165,14 @@
}
mutual_user = ucl_object_find_key(obj, "mutual-user");
- if (!user || user->type != UCL_STRING) {
+ if (!mutual_user || mutual_user->type != UCL_STRING) {
log_warnx("chap-mutual section in target \"%s\" is missing "
"\"mutual-user\" string key", t_name);
return (false);
}
mutual_secret = ucl_object_find_key(obj, "mutual-secret");
- if (!secret || secret->type != UCL_STRING) {
+ if (!mutual_secret || mutual_secret->type != UCL_STRING) {
log_warnx("chap-mutual section in target \"%s\" is missing "
"\"mutual-secret\" string key", t_name);
return (false);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 13, 4:49 PM (12 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31417737
Default Alt Text
D49645.id.diff (1 KB)
Attached To
Mode
D49645: ctld: Properly validate mutual user/secret for CHAP-MUTUAL in the UCL parser
Attached
Detach File
Event Timeline
Log In to Comment