projects
/
freeradius.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Catch NULL ptr
[freeradius.git]
/
src
/
main
/
xlat.c
diff --git
a/src/main/xlat.c
b/src/main/xlat.c
index
dbe35f5
..
a90b9a4
100644
(file)
--- a/
src/main/xlat.c
+++ b/
src/main/xlat.c
@@
-529,6
+529,8
@@
void xlat_unregister(const char *module, RAD_XLAT_FUNC func)
func = func; /* -Wunused */
+ if (!module) return;
+
strNcpy(my_xlat.module, module, sizeof(my_xlat.module));
my_xlat.length = strlen(my_xlat.module);