- Timestamp:
- Sep 24, 2015, 8:18:00 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/samhain.c
r488 r489 1199 1199 FileSchedIn = NULL; 1200 1200 *status = 0; 1201 return NULL;1201 SL_RETURN(NULL, _("sh_set_schedule_int")); 1202 1202 } 1203 1203 … … 1210 1210 SL_RETURN(FileSchedIn , _("sh_set_schedule_int")); 1211 1211 } 1212 FileSched->next = FileSchedIn; 1212 else { 1213 FileSched->next = FileSchedIn; 1214 } 1213 1215 SL_RETURN(FileSched , _("sh_set_schedule_int")); 1214 1216 } -
trunk/src/sh_audit.c
r488 r489 34 34 #include "sh_error.h" 35 35 36 #undef FIL__ 37 #define FIL__ _("sh_audit.c") 38 36 39 #if !defined(SH_COMPILE_STATIC) && defined(__linux__) && defined(HAVE_AUPARSE_H) && defined(HAVE_AUPARSE_LIB) 37 40 #include <auparse.h> … … 40 43 #include "sh_utils.h" 41 44 42 #undef FIL__43 #define FIL__ _("sh_audit.c")44 45 45 46 #define REC_SIZE_SYSCALL 32 … … 217 218 { 218 219 time_t new; 219 char buf[64];220 220 221 221 if (mtime >= ctime) { new = mtime; } -
trunk/src/sh_err_console.c
r481 r489 273 273 char * sh_log_console_name (void) 274 274 { 275 if ( ! sh.srvcons.name ||sh.srvcons.name[0] == '\0' ||275 if (sh.srvcons.name[0] == '\0' || 276 276 0 == strcmp(sh.srvcons.name, _("NULL"))) 277 277 return (_("/dev/console")); -
trunk/src/sh_mem.c
r481 r489 246 246 tmp->file, tmp->line, FIL__, __LINE__); 247 247 free(tmp); 248 SH_ABORT; 249 _exit (EXIT_FAILURE); 248 250 } 249 251 … … 340 342 sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_E_MNULL, 341 343 file, line, FIL__, __LINE__); 344 SH_ABORT; 345 _exit (EXIT_FAILURE); 342 346 SL_RET0(_("sh_mem_free")); 343 347 } … … 422 426 tmp->file, tmp->line, file, line); 423 427 free(tmp); 428 SH_ABORT; 429 _exit (EXIT_FAILURE); 424 430 } 425 431 -
trunk/src/sh_xfer_client.c
r481 r489 1541 1541 /* --- Send (nclt, msg) --- 1542 1542 */ 1543 buffersize = strlen(nclt)+strlen(errmsg)+2; 1544 buffer = SH_ALLOC(buffersize); 1545 1546 sl_strlcpy(buffer, nclt, buffersize); 1547 sl_strlcat(buffer, errmsg, buffersize); 1548 1543 if (S_TRUE == sl_ok_adds(strlen(errmsg), strlen(nclt)+2+KEY_LEN)) 1544 { 1545 buffersize = strlen(nclt)+strlen(errmsg)+2; 1546 1549 1547 #if !defined(SH_ENCRYPT) 1550 if (4 == sl_strlen(errmsg)) { /* backward compatibility */ 1551 buffersize = sl_strlen(buffer); 1552 buffer[buffersize] = theProto; /* nctl//DATA//theProto */ 1553 buffer[buffersize+1] = '\0'; 1548 buffersize += KEY_LEN; 1549 #endif 1550 buffer = SH_ALLOC(buffersize); 1551 1552 sl_strlcpy(buffer, nclt, buffersize); 1553 sl_strlcat(buffer, errmsg, buffersize); 1554 1555 #if !defined(SH_ENCRYPT) 1556 if (4 == sl_strlen(errmsg)) { /* backward compatibility */ 1557 buffersize = sl_strlen(buffer); 1558 buffer[buffersize] = theProto; /* nctl//DATA//theProto */ 1559 buffer[buffersize+1] = '\0'; 1560 } 1561 sh_tools_hash_add(foo_M1, buffer, buffersize+1); 1562 #endif 1563 1564 flag_err = 1565 xfer_send_crypt (sockfd, (char) theProto, _("NCLT"), 1566 buffer, 1567 (unsigned long) sl_strlen(buffer)); 1568 1569 TPT(( 0, FIL__, __LINE__, _("msg=<Sent %s, status %d.>\n"), 1570 buffer, flag_err)); 1571 SH_FREE (buffer); 1572 } 1573 else { 1574 flag_err = -1; 1554 1575 } 1555 sh_tools_hash_add(foo_M1, buffer, buffersize+1); 1556 #endif 1557 1558 flag_err = 1559 xfer_send_crypt (sockfd, (char) theProto, _("NCLT"), 1560 buffer, 1561 (unsigned long) sl_strlen(buffer)); 1562 1563 TPT(( 0, FIL__, __LINE__, _("msg=<Sent %s, status %d.>\n"), 1564 buffer, flag_err)); 1565 SH_FREE (buffer); 1566 } 1576 } 1567 1577 } 1568 1578
Note:
See TracChangeset
for help on using the changeset viewer.