diff options
author | sobomax <sobomax@FreeBSD.org> | 2005-03-15 16:54:51 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2005-03-15 16:54:51 +0800 |
commit | b712324f2ca4eb2ebaed2b0e92222ec7b6dfba84 (patch) | |
tree | 5efacb636663f8861447830ddeb4459589ff2d7f /net/ser/files | |
parent | 60e8685ff51802f95b1751e54d4a0e6b0e0e9718 (diff) | |
download | freebsd-ports-gnome-b712324f2ca4eb2ebaed2b0e92222ec7b6dfba84.tar.gz freebsd-ports-gnome-b712324f2ca4eb2ebaed2b0e92222ec7b6dfba84.tar.zst freebsd-ports-gnome-b712324f2ca4eb2ebaed2b0e92222ec7b6dfba84.zip |
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.c | 14 |
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); |