summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-11-14 06:30:20 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-11-14 06:30:20 +0000
commit5f52c795eacb859ca6012bc76b977b31c5f7d81a (patch)
treeb480367ac7230b12ca6558537ad81a0608026962
parent8be15fd30ab70ee7b00c4917d767ef748b220261 (diff)
add strcasecmp support (separate file)
remove spurious free's of unallocated buffer
-rw-r--r--lib/Zinternal.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Zinternal.c b/lib/Zinternal.c
index 1f9fe2d..7908dde 100644
--- a/lib/Zinternal.c
+++ b/lib/Zinternal.c
@@ -782,12 +782,10 @@ Code_t Z_SendFragmentedNotice(notice, len, send_func)
fragsize);
if ((retval = ZFormatSmallRawNotice(&partnotice, buffer,
&ret_len)) != ZERR_NONE) {
- free(buffer);
return (retval);
}
if ((retval = (*send_func)(&partnotice, buffer, ret_len,
waitforack)) != ZERR_NONE) {
- free(buffer);
return (retval);
}
offset += fragsize;
@@ -807,3 +805,10 @@ int wait;
{
return(ZSendPacket(buf, len, wait));
}
+
+#if (BSD < 43) || defined(STRCASE)
+#ifndef ULTRIX30
+/* Ultrix 3.0 has strcasecmp/strncasecmp */
+#include "strcasecmp.c"
+#endif /* ULTRIX30 */
+#endif /* BSD < 43 */