summaryrefslogtreecommitdiff
path: root/net/ser/files
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2005-03-15 08:54:51 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2005-03-15 08:54:51 +0000
commit3bd1905091185fcd36847511efb9fa0018a1c36e (patch)
treefc0281cd15add009e9aee33996be77d45d338a96 /net/ser/files
parent- Update to 2.3.2: (diff)
Fix possible coredump in usrloc module (backported from soon to be released
0.9.0. Reported by: Barry Murphy <barry@unix.co.nz>
Diffstat (limited to 'net/ser/files')
-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);