diff options
author | Bill Marquette <billm@pfsense.org> | 2005-09-10 18:29:36 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-09-10 18:29:36 +0000 |
commit | 9499c2d26cc94186f6ed96d34c831ae3fcac672d (patch) | |
tree | c07928e3c058624551f30248993fc03c82b59433 /etc/inc/util.inc | |
parent | 9d3f5df1b42ce3389e9e19864fdf33b9cee1cc1a (diff) | |
download | pfsense-9499c2d26cc94186f6ed96d34c831ae3fcac672d.zip pfsense-9499c2d26cc94186f6ed96d34c831ae3fcac672d.tar.gz |
Document return values
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 1bd597d..ba38938 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -205,11 +205,12 @@ function is_macaddr($macaddr) { } /* returns true if $name is a valid name for an alias */ +/* returns NULL if a reserved word is used */ function is_validaliasname($name) { /* Array of reserved words */ $reserved = array("port", "pass"); if (in_array($name, $reserved, true)) - return; + return; /* return NULL */ if (!preg_match("/[^a-zA-Z0-9]/", $name)) return true; |