diff options
author | Lubos Lunak <l.lunak@ suse.cz> | 2006-03-03 17:23:20 +0000 |
---|---|---|
committer | Lubos Lunak <l.lunak@ suse.cz> | 2006-03-03 17:23:20 +0000 |
commit | 15e2f580542596ab813096bdb14e6840930e221b (patch) | |
tree | 7eae6566e687895295d109a36c1baabf3606e3c1 /lib | |
parent | 52caed76bb0b83f7c89d858a4c2f5a933462bae2 (diff) |
0 means invalid sequence number, make sure it's not generated.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/comm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -188,7 +188,9 @@ void dapi_close( DapiConnection* conn ) static int getNextSeq( DapiConnection* conn ) { - return ++conn->last_seq; + if( ++conn->last_seq == 0 ) // 0 means invalid + ++conn->last_seq; + return conn->last_seq; } static char* readString( DapiConnection* conn, int len ) |