Merge pull request #1469 from poettering/even-more-fixed

Even more fixes
This commit is contained in:
Daniel Mack
2015-10-06 14:59:24 +02:00
5 changed files with 50 additions and 26 deletions
+1 -1
View File
@@ -784,5 +784,5 @@ rollback:
free(nl[j]);
nl[k] = NULL;
return NULL;
return -ENOMEM;
}
+5 -3
View File
@@ -6849,12 +6849,14 @@ int version(void) {
bool fdname_is_valid(const char *s) {
const char *p;
/* Validates a name for $LISTEN_NAMES. We basically allow
/* Validates a name for $LISTEN_FDNAMES. We basically allow
* everything ASCII that's not a control character. Also, as
* special exception the ":" character is not allowed, as we
* use that as field separator in $LISTEN_NAMES.
* use that as field separator in $LISTEN_FDNAMES.
*
* Note that the empty string is explicitly allowed here.*/
* Note that the empty string is explicitly allowed
* here. However, we limit the length of the names to 255
* characters. */
if (!s)
return false;