diff options
| author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-12-12 14:59:14 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-12-12 14:59:14 +0100 |
| commit | 589f99915eb95d9207c08259c8880675a0a502cf (patch) | |
| tree | 5ff9ecad2b185f0d4e040b166793b9d357493b54 | |
| parent | dab4f2afc76a7db84d81ebf9193acab56ff0aa2b (diff) | |
| download | plan9front-589f99915eb95d9207c08259c8880675a0a502cf.tar.xz | |
devssl: tiny fixes (from plan 9)
| -rw-r--r-- | sys/src/9/port/devssl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/9/port/devssl.c b/sys/src/9/port/devssl.c index 25c2dd835..249003ca3 100644 --- a/sys/src/9/port/devssl.c +++ b/sys/src/9/port/devssl.c @@ -760,7 +760,7 @@ sslput(Dstate *s, Block * volatile b) if(waserror()){ if(b != nil) - free(b); + freeb(b); nexterror(); } @@ -892,7 +892,7 @@ initDESkey_40(OneWay *w) key[6] &= 0x0f; } - w->state = malloc(sizeof(DESstate)); + w->state = smalloc(sizeof(DESstate)); if(w->slen >= 16) setupDESstate(w->state, key, w->secret+8); else if(w->slen >= 8) @@ -928,7 +928,7 @@ initRC4key_40(OneWay *w) if(w->slen > 5) w->slen = 5; - w->state = malloc(sizeof(RC4state)); + w->state = smalloc(sizeof(RC4state)); setupRC4state(w->state, w->secret, w->slen); } @@ -947,7 +947,7 @@ initRC4key_128(OneWay *w) if(w->slen > 16) w->slen = 16; - w->state = malloc(sizeof(RC4state)); + w->state = smalloc(sizeof(RC4state)); setupRC4state(w->state, w->secret, w->slen); } |
