Page MenuHomeFreeBSD

D49645.id.diff
No OneTemporary

D49645.id.diff

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

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)

Event Timeline