Remove unnecessary log messages.

This commit is contained in:
Dag-Erling Smørgrav 2021-10-21 15:49:26 +02:00
parent f1871a7d9f
commit cc0d61260e
3 changed files with 0 additions and 5 deletions

View File

@ -57,7 +57,6 @@ openpam_readlinev(FILE *f, int *lineno, int *lenp)
wordvsize = MIN_WORDV_SIZE; wordvsize = MIN_WORDV_SIZE;
wordvlen = 0; wordvlen = 0;
if ((wordv = malloc(wordvsize * sizeof *wordv)) == NULL) { if ((wordv = malloc(wordvsize * sizeof *wordv)) == NULL) {
openpam_log(PAM_LOG_ERROR, "malloc(): %m");
errno = ENOMEM; errno = ENOMEM;
return (NULL); return (NULL);
} }
@ -68,7 +67,6 @@ openpam_readlinev(FILE *f, int *lineno, int *lenp)
wordvsize *= 2; wordvsize *= 2;
tmp = realloc(wordv, wordvsize * sizeof *wordv); tmp = realloc(wordv, wordvsize * sizeof *wordv);
if (tmp == NULL) { if (tmp == NULL) {
openpam_log(PAM_LOG_ERROR, "malloc(): %m");
errno = ENOMEM; errno = ENOMEM;
break; break;
} }

View File

@ -132,7 +132,6 @@ openpam_readword(FILE *f, int *lineno, size_t *lenp)
} }
if (ch == EOF && (escape || quote)) { if (ch == EOF && (escape || quote)) {
/* Missing escaped character or closing quote. */ /* Missing escaped character or closing quote. */
openpam_log(PAM_LOG_DEBUG, "unexpected end of file");
free(word); free(word);
errno = EINVAL; errno = EINVAL;
return (NULL); return (NULL);

View File

@ -56,7 +56,6 @@ openpam_straddch(char **str, size_t *size, size_t *len, int ch)
/* initial allocation */ /* initial allocation */
tmpsize = MIN_STR_SIZE; tmpsize = MIN_STR_SIZE;
if ((tmpstr = malloc(tmpsize)) == NULL) { if ((tmpstr = malloc(tmpsize)) == NULL) {
openpam_log(PAM_LOG_ERROR, "malloc(): %m");
errno = ENOMEM; errno = ENOMEM;
return (-1); return (-1);
} }
@ -67,7 +66,6 @@ openpam_straddch(char **str, size_t *size, size_t *len, int ch)
/* additional space required */ /* additional space required */
tmpsize = *size * 2; tmpsize = *size * 2;
if ((tmpstr = realloc(*str, tmpsize)) == NULL) { if ((tmpstr = realloc(*str, tmpsize)) == NULL) {
openpam_log(PAM_LOG_ERROR, "realloc(): %m");
errno = ENOMEM; errno = ENOMEM;
return (-1); return (-1);
} }