summaryrefslogtreecommitdiff
path: root/net/ser/files/patch-modules::usrloc::udomain.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ser/files/patch-modules::usrloc::udomain.c')
-rw-r--r--net/ser/files/patch-modules::usrloc::udomain.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/ser/files/patch-modules::usrloc::udomain.c b/net/ser/files/patch-modules::usrloc::udomain.c
new file mode 100644
index 000000000000..3e627f8ef7eb
--- /dev/null
+++ b/net/ser/files/patch-modules::usrloc::udomain.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- modules/usrloc/udomain.c
++++ modules/usrloc/udomain.c
+@@ -288,7 +288,7 @@
+ }
+ flags = VAL_BITMAP(ROW_VALUES(row) + 8);
+ ua.s = (char*)VAL_STRING(ROW_VALUES(row) + 9);
+- ua.len = strlen(ua.s);
++ ua.len = (ua.s != NULL) ? strlen(ua.s) : 0;
+
+ if (use_domain) {
+ domain = (char*)VAL_STRING(ROW_VALUES(row) + 10);