Imported Upstream version 2.7.4

This commit is contained in:
Laurent Bigonville 2016-07-18 02:11:41 +02:00
parent fd413a3168
commit c9cb2187ee
290 changed files with 7473 additions and 2607 deletions

View file

@ -366,6 +366,7 @@ LD = @LD@
LDFLAGS = @LDFLAGS@
LIBAVAHI_CFLAGS = @LIBAVAHI_CFLAGS@
LIBAVAHI_LIBS = @LIBAVAHI_LIBS@
LIBDIR = @LIBDIR@
LIBGD_CFLAGS = @LIBGD_CFLAGS@
LIBGD_LDFLAGS = @LIBGD_LDFLAGS@
LIBIPMI_CFLAGS = @LIBIPMI_CFLAGS@

View file

@ -374,6 +374,11 @@ std::string Socket::read()throw(nut::IOException)
// Read new buffer
size_t sz = read(&buff, 256);
if(sz==0)
{
disconnect();
throw nut::IOException("Server closed connection unexpectedly");
}
_buffer.assign(buff, sz);
}
}

View file

@ -366,6 +366,11 @@ static void do_type(const char *varname)
}
if (!strcasecmp(answer[i], "NUMBER")) {
printf("Type: NUMBER\n");
return;
}
/* ignore this one */
if (!strcasecmp(answer[i], "RW")) {
continue;