mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-03-11 06:53:54 +00:00
and a fix to that last fix.
This commit is contained in:
parent
f20d136c9f
commit
fcb329f828
@ -125,7 +125,7 @@ int stowSid(unsigned char *packet, int ofs, const char *sid)
|
|||||||
if (!validateSid(sid))
|
if (!validateSid(sid))
|
||||||
return WHY("Invalid SID passed in");
|
return WHY("Invalid SID passed in");
|
||||||
if (!strcasecmp(sid,"broadcast"))
|
if (!strcasecmp(sid,"broadcast"))
|
||||||
for(i=0;i<i<32;i++) packet[ofs++]=0xff;
|
for(i=0;i<32;i++) packet[ofs++]=0xff;
|
||||||
else
|
else
|
||||||
for(i = 0; i != SID_SIZE; ++i) {
|
for(i = 0; i != SID_SIZE; ++i) {
|
||||||
packet[ofs] = hexvalue(sid[i<<1]) << 4;
|
packet[ofs] = hexvalue(sid[i<<1]) << 4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user