dovecot-2.2: net_gethosterror(): Never return NULL.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Aug 5 16:59:34 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/dc60e46f0cb5
changeset: 16647:dc60e46f0cb5
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 05 16:59:21 2013 +0300
description:
net_gethosterror(): Never return NULL.
diffstat:
src/lib/net.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r f69e08188622 -r dc60e46f0cb5 src/lib/net.c
--- a/src/lib/net.c Mon Aug 05 16:58:01 2013 +0300
+++ b/src/lib/net.c Mon Aug 05 16:59:21 2013 +0300
@@ -967,10 +967,9 @@
return "A non-recoverable name server error occurred";
case TRY_AGAIN:
return "A temporary error on an authoritative name server";
+ default:
+ return t_strdup_printf("Unknown error %d", error);
}
-
- /* unknown error */
- return NULL;
#endif
}
More information about the dovecot-cvs
mailing list